3 # $NetBSD: mixerctl,v 1.9 2004/10/11 15:00:51 christos Exp $
7 # REQUIRE: mountcritremote
10 $_rc_subr_loaded .
/etc
/rc.subr
14 start_cmd
="mixerctl_start"
15 stop_cmd
="mixerctl_stop"
19 if [ -n "$mixerctl_mixers" ]; then
20 echo -n "Restoring mixer settings:"
21 for mix
in $mixerctl_mixers; do
22 if [ -s /var
/db
/${mix}.conf
]; then
24 /usr
/bin
/mixerctl
-d /dev
/$mix -n -w \
25 $
(/bin
/cat /var
/db
/${mix}.conf
)
30 if [ -r /etc
/mixerctl.conf
]; then
31 echo "Setting mixerctl variables..."
32 while read setting
; do
38 /usr
/bin
/mixerctl
-n -w $setting
39 done < /etc
/mixerctl.conf
45 if [ -n "$mixerctl_mixers" ]; then
46 echo -n "Saving mixer settings:"
47 for mix
in $mixerctl_mixers; do
49 /usr
/bin
/mixerctl
-d /dev
/$mix -a > /var
/db
/${mix}.conf