diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
commit | c6000c9d9949b3326fb82f02431899ab6774b960 (patch) | |
tree | 2453cd564b0f382f3d8ccd893df8ebe2e9aeda71 /cdemu-daemon/cdemud.rc | |
parent | 453f0f12918af35bd8e1e5f049841360f37d62e4 (diff) | |
download | aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.gz aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.xz |
big cleanup
Diffstat (limited to 'cdemu-daemon/cdemud.rc')
-rw-r--r-- | cdemu-daemon/cdemud.rc | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/cdemu-daemon/cdemud.rc b/cdemu-daemon/cdemud.rc deleted file mode 100644 index f76ba42..0000000 --- a/cdemu-daemon/cdemud.rc +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/cdemud - -case "$1" in - start) - stat_busy "Loading vhba module" - modprobe vhba - if [ $? -ne 0 ]; then - stat_fail - else - stat_done - fi - - stat_busy "Waiting for $CTL_DEVICE" - i=0 - until [ -c $CTL_DEVICE -o $i -ge 10 ]; do - i=`expr $i + 1` - sleep 1 - done - if [ -c $CTL_DEVICE ]; then - stat_done - else - stat_fail - fi - - stat_busy "Starting cdemud" - cdemud -d -n $NUM_DRIVES -c $CTL_DEVICE -a $AUDIO_BACKEND &>/dev/null - if [ $? -ne 0 ]; then - stat_fail - else - add_daemon cdemud - stat_done - fi - ;; - stop) - stat_busy "Stopping cdemud" - cdemud -k &>/dev/null - if [ $? -ne 0 ]; then - stat_fail - else - rm_daemon cdemud - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac |