Author: qboosh                       Date: Mon Oct 20 17:09:38 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added try-restart

---- Files affected:
SOURCES:
   bluez.init (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/bluez.init
diff -u SOURCES/bluez.init:1.2 SOURCES/bluez.init:1.3
--- SOURCES/bluez.init:1.2      Sat Oct 18 17:43:20 2008
+++ SOURCES/bluez.init  Mon Oct 20 19:09:32 2008
@@ -122,6 +122,16 @@
        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 @@
        stop
        start
        ;;
+  try-restart)
+       condrestart 0
+       ;;
   reload|force-reload)
        if [ -f /var/lock/subsys/bluetooth ]; then
                msg_reloading hcid
@@ -158,7 +171,7 @@
        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
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/bluez.init?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to