]> git.pld-linux.org Git - packages/bluez.git/commitdiff
- added try-restart auto/ti/bluez-4_14-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 20 Oct 2008 17:09:32 +0000 (17:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bluez.init -> 1.3

bluez.init

index a45ca2d2fbeb71c16a0b578437484abec32f1105..c2be378da646f6edd4f7e83dcee753acc42f377c 100644 (file)
@@ -122,6 +122,16 @@ stop() {
        fi
 }
 
+condrestart() {
+       if [ -f /var/lock/subsys/bluetooth ]; then
+               stop
+               start
+       else
+               msg_not_running bluetooth
+               RETVAL=$1
+       fi
+}
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -135,6 +145,9 @@ case "$1" in
        stop
        start
        ;;
+  try-restart)
+       condrestart 0
+       ;;
   reload|force-reload)
        if [ -f /var/lock/subsys/bluetooth ]; then
                msg_reloading hcid
@@ -158,7 +171,7 @@ case "$1" in
        fi              
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"
        exit 3
 esac
 
This page took 0.030999 seconds and 4 git commands to generate.