bump version
[buildroot.git] / package / dmraid / dmraid.init
blob43240e266aa0338e3df0f99810afbaf1242c03a6
1 #!/bin/sh
3 # try to load module in case that hasn't been done yet
4 modprobe dm-mod >/dev/null 2>&1
6 set -e
8 [ -x /sbin/dmraid ] || exit 0
10 case "$1" in
11 start|"")
12 echo "Setting up DMRAID devices..."
13 /sbin/dmraid --activate yes --ignorelocking --verbose
16 stop)
17 echo "Shutting down DMRAID devices... "
18 /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