python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / dmraid / S20dmraid
blobfd2ad9e845fe3090cf99337cd71260c6e269fcb3
1 #!/bin/sh
3 set -e
5 [ -x /usr/sbin/dmraid ] || exit 0
7 # try to load module in case that hasn't been done yet
8 modprobe dm-mod >/dev/null 2>&1
10 case "$1" in
11 start|"")
12 echo "Setting up DMRAID devices..."
13 /usr/sbin/dmraid --activate yes --ignorelocking --verbose
16 stop)
17 echo "Shutting down DMRAID devices... "
18 /usr/sbin/dmraid --activate no --ignorelocking --verbose
21 restart|force-reload)
22 $0 stop
23 sleep 1
24 $0 start
28 echo "Usage: dmraid {start|stop|restart|force-reload}"
29 exit 1
31 esac