aboutsummaryrefslogtreecommitdiff
path: root/init.d.BSD/mixer
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-11 12:13:46 +0000
committerRoy Marples <roy@marples.name>2008-01-11 12:13:46 +0000
commit3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (patch)
tree8b4d6121f0d4b921566eeec2844c9bf76131de78 /init.d.BSD/mixer
parent1f4422c72f968405a0b8bf56d4f9c3b619b1b80d (diff)
Adopt a more C style for scripts and remove vim settings.
Diffstat (limited to 'init.d.BSD/mixer')
-rw-r--r--init.d.BSD/mixer15
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