kumquat-buildroot/package/dmraid/dmraid.init
Peter Korsgaard 39fc310669 dmraid: fix build & convert to Makefile.autotools.in
Patch by Olaf Rempel <razzor@kopf-tisch.de>

- was not building at all (x86 uclibc)
- adding devicemapper dependency
2009-03-04 13:22:38 +00:00

32 lines
512 B
Bash

#!/bin/sh
set -e
[ -x /sbin/dmraid ] || exit 0
# try to load module in case that hasn't been done yet
modprobe dm-mod >/dev/null 2>&1
case "$1" in
start|"")
echo "Setting up DMRAID devices..."
/sbin/dmraid --activate yes --ignorelocking --verbose
;;
stop)
echo "Shutting down DMRAID devices... "
/sbin/dmraid --activate no --ignorelocking --verbose
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: dmraid {start|stop|restart|force-reload}"
exit 1
;;
esac