]> git.pld-linux.org Git - packages/aumix.git/commitdiff
- don't use daemon() here
authorankry <ankry@pld-linux.org>
Wed, 21 May 2003 22:23:31 +0000 (22:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aumix.init -> 1.8

aumix.init

index 3db69a7770cb23b84b4de01e867c960d47445c0c..d96f0f03c4fcc835071672cb5ecff24c4c95eeb9 100644 (file)
@@ -21,14 +21,10 @@ case "$1" in
                show "Setting up sound card mixer"
                busy
                if [ "$AUMIX_AUTO_INIT" = "yes" ]; then
-                       daemon aumix -f /etc/aumixrc -L >/dev/null
+                       aumix -f /etc/aumixrc -L >/dev/null
                        RETVAL=$?
-                       [ $RETVAL -eq 0 ] && ok || fail
-                       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/aumix
-               else
-                       touch /var/lock/subsys/aumix
-                       ok
                fi
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/aumix && ok || fail
        else
                nls "Sound card mixer is already set up"
        fi
@@ -52,10 +48,7 @@ case "$1" in
        exit $0
         ;;
   save)
-       show "Saving sound card mixer's settings"
-       busy
-       aumix -f /etc/aumixrc -S
-       ok
+       run_cmd "Saving sound card mixer's settings" aumix -f /etc/aumixrc -S
        ;;
   restore|reload)
        show "Setting up sound card mixer"
This page took 0.032997 seconds and 4 git commands to generate.