]> git.pld-linux.org Git - packages/alsa-utils.git/commitdiff
- fixed force-reload, added try-restart auto/ti/alsa-utils-1_0_18-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 5 Nov 2008 19:07:43 +0000 (19:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    alsasound.init -> 1.20

alsasound.init

index c0f99172726980550efdabac72f44e492b39c969..0710174bd1d9c9bd46902cd08b94e881c149335e 100644 (file)
@@ -147,6 +147,16 @@ stop() {
        fi
 }
 
+condrestart() {
+       if [ -f /var/lock/subsys/alsasound ]; then
+               stop
+               start
+       else
+               msg_not_running "ALSA driver"
+               RETVAL=$1
+       fi
+}
+
 
 # See how we were called.
 case "$1" in
@@ -156,15 +166,21 @@ case "$1" in
   stop)
        stop
        ;;
-  restart|force-reload)
+  restart)
        stop
        start
        ;;
+  try-restart)
+       condrestart 0
+       ;;
+  force-reload)
+       condrestart 7
+       ;;
   status)
        # TODO
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
        exit 3
 esac
 
This page took 0.043556 seconds and 4 git commands to generate.