S20dmraid 489 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. set -e
  3. # try to load module in case that hasn't been done yet
  4. modprobe dm-mod >/dev/null 2>&1
  5. case "$1" in
  6. start|"")
  7. echo "Setting up DMRAID devices..."
  8. /usr/sbin/dmraid --activate yes --ignorelocking --verbose
  9. ;;
  10. stop)
  11. echo "Shutting down DMRAID devices... "
  12. /usr/sbin/dmraid --activate no --ignorelocking --verbose
  13. ;;
  14. restart|force-reload)
  15. $0 stop
  16. sleep 1
  17. $0 start
  18. ;;
  19. *)
  20. echo "Usage: dmraid {start|stop|restart|force-reload}"
  21. exit 1
  22. ;;
  23. esac