]> git.pld-linux.org Git - packages/aumix.git/blobdiff - aumix.init
- s/OSS-preserve-settings/preserve-settings/ - this also works for ALSA
[packages/aumix.git] / aumix.init
index 6d914646d8fa534c46e43918fe7305af07043e05..963a8c8ab6a780f4c0aa0922eb51de0e5d5f98e6 100644 (file)
@@ -2,9 +2,9 @@
 #
 # aumix                Sound mixer setup.
 #
-# chkconfig:    345  85 15
+# chkconfig:   345 85 15
 #
-# description: Saves sound mixer's settings on system shutdown and restores
+# description: Saves sound mixer's settings on system shutdown and restores \
 #              them on system startup.
 
 # Source function library
@@ -12,7 +12,7 @@
 
 [ -f /etc/sysconfig/aumix ] && . /etc/sysconfig/aumix
 
-RETVAL=$?
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -28,7 +28,7 @@ case "$1" in
        else
                nls "Sound card mixer is already set up"
        fi
-        ;;
+       ;;
   stop)
        if [ -f /var/lock/subsys/aumix ]; then
                show "Saving sound card mixer's settings"
@@ -41,15 +41,15 @@ case "$1" in
        else
                nls "Sound card mixer hasn't been set up"
        fi      
-        ;;
+       ;;
   restart|force-reload)
-        $0 stop
+       $0 stop
        $0 start
        exit $0
-        ;;
+       ;;
   save)
        run_cmd "Saving sound card mixer's settings" aumix -f /etc/aumixrc -S
-       ;;
+       ;;
   restore|reload)
        show "Setting up sound card mixer"
        busy
@@ -74,15 +74,15 @@ case "$1" in
                        if [ $? = 0 ]; then
                                nls "MIDI device not detected."
                        fi
-               fi    
+               fi
 
        else
                nls "Sound card not configured."
-        fi
-        ;;
+       fi
+       ;;
   *)
        msg_usage "$0 {start|stop|restart|reload|force-reload|save|restore|status}"
-        exit 3
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.048423 seconds and 4 git commands to generate.