Catch up with renaming of macros IRQn -> ICU_IRQn in i386/icu/icu.h,1.7
[dragonfly.git] / etc / rc.d / mixer
blob3acce254a08b43c4fce08c6cf08661a95d884fd4
1 #!/bin/sh
3 # $DragonFly: src/etc/rc.d/mixer,v 1.7 2005/10/21 17:44:37 swildner Exp $
6 # PROVIDE: mixer
7 # REQUIRE: DAEMON
8 # BEFORE: LOGIN
9 # KEYWORD: DragonFly shutdown
11 . /etc/rc.subr
13 name="mixer"
14 rcvar=`set_rcvar`
15 start_cmd="mixer_start"
16 stop_cmd="mixer_stop"
17 mixer_conf=/etc/mixer.conf
19 mixer_start()
21 if [ -r $mixer_conf ]; then
22 echo "Loading mixer settings"
23 cat $mixer_conf| xargs mixer
27 mixer_stop()
29 [ -z "$mixer_conf" ] && return
30 if [ -w $mixer_conf -o \( ! -e $mixer_conf -a -w `dirname $mixer_conf` \) ]; then
31 echo "Storing mixer settings"
32 mixer -s > $mixer_conf
36 load_rc_config $name
37 run_rc_command "$1"