From 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 Jan 2008 12:13:46 +0000 Subject: Adopt a more C style for scripts and remove vim settings. --- init.d.BSD/mixer | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'init.d.BSD/mixer') 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 -- cgit v1.2.3