diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-09-16 15:14:35 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-09-16 15:14:35 +0200 |
commit | 78e7c0b642a0decf6dad37026b3f70bb480f645b (patch) | |
tree | 7b14ef6d4ba93bf88a23ca68d5f6a3f577a29889 /package/dmraid/dmraid.init | |
parent | e7895986de4ec8819dbb7da4b939d8daec6606a2 (diff) |
dmraid: fix init script
Init scripts are only run if they are prefixed with S??, and dmraid gets
installed into /usr/sbin, not /sbin.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/dmraid/dmraid.init')
-rw-r--r-- | package/dmraid/dmraid.init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/dmraid/dmraid.init b/package/dmraid/dmraid.init index 970d47d8e..fd2ad9e84 100644 --- a/package/dmraid/dmraid.init +++ b/package/dmraid/dmraid.init @@ -2,7 +2,7 @@ set -e -[ -x /sbin/dmraid ] || exit 0 +[ -x /usr/sbin/dmraid ] || exit 0 # try to load module in case that hasn't been done yet modprobe dm-mod >/dev/null 2>&1 @@ -10,12 +10,12 @@ modprobe dm-mod >/dev/null 2>&1 case "$1" in start|"") echo "Setting up DMRAID devices..." - /sbin/dmraid --activate yes --ignorelocking --verbose + /usr/sbin/dmraid --activate yes --ignorelocking --verbose ;; stop) echo "Shutting down DMRAID devices... " - /sbin/dmraid --activate no --ignorelocking --verbose + /usr/sbin/dmraid --activate no --ignorelocking --verbose ;; restart|force-reload) |