diff options
Diffstat (limited to 'init.d.BSD/mixer')
-rw-r--r-- | init.d.BSD/mixer | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/init.d.BSD/mixer b/init.d.BSD/mixer index 3156ca64..c491e7db 100644 --- a/init.d.BSD/mixer +++ b/init.d.BSD/mixer @@ -4,29 +4,34 @@ extra_commands="restore" -depend() { +depend() +{ need localmount } -restore() { +restore() +{ local mixer= retval=0 ebegin "Restoring mixer settings" eindent for mixer in /dev/mixer*; do if [ -r "/var/db/${mixer#/dev/}-state" ]; then vebegin "${mixer}" - mixer -f "${mixer}" $(cat "/var/db/${mixer#/dev/}-state") >/dev/null + mixer -f "${mixer}" \ + $(cat "/var/db/${mixer#/dev/}-state") >/dev/null veend $? : $((retval += $?)) fi done } -start() { +start() +{ restore } -stop() { +stop() +{ local mixer= retval=0 ebegin "Saving mixer settings" eindent |