3 # aumix Sound mixer setup.
7 # description: Saves sound mixer's settings on system shutdown and restores
8 # them on system startup.
10 # Source function library
11 . /etc/rc.d/init.d/functions
13 # See how we were called.
16 # Check if the service is already running?
17 if [ ! -f /var/lock/subsys/aumix ]; then
18 show "Setting up sound card mixer"
20 aumix -f /etc/aumixrc -L >/dev/null
22 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/aumix
25 # show "%s service is already running." <service>
26 nls "Sound card mixer is already set up"
32 if [ -f /var/lock/subsys/aumix ]; then
33 show "Saving sound card mixer's settings"
35 aumix -f /etc/aumixrc -S
36 rm -f /var/lock/subsys/aumix >/dev/null 2>&1
39 nls "Sound card mixer hasn't been set up"
48 show "Saving sound card mixer's settings"
50 aumix -f /etc/aumixrc -S
54 show "Setting up sound card mixer"
56 aumix -f /etc/aumixrc -L >/dev/null
64 msg_Usage "$0 {start|stop|status|restart|save|restore}"