]> git.pld-linux.org Git - packages/bluez-utils.git/commitdiff
- cleaning
authorankry <ankry@pld-linux.org>
Sun, 4 May 2003 20:17:13 +0000 (20:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bluez-utils.init -> 1.3

bluez-utils.init

index 49f23d01901204aadab10e1e667731351ac89ff9..4de86b0ca38ed78250fe4d3a50062589f4e82b28 100644 (file)
@@ -2,7 +2,7 @@
 #
 # bluetooth    Bluetooth subsystem starting and stopping
 #
-# chkconfig:    345  25 90
+# chkconfig:   345 25 90
 #
 # description: Bluetooth subsystem
 #
@@ -81,8 +81,10 @@ case "$1" in
        if [ -f /var/lock/subsys/bluetooth ]; then
                # show "Reload %s service" Bluetooth
                msg_reloading Bluetooth
+               busy
                killproc hcid -HUP
                RETVAL=$?
+               [ $RETVAL -eq 0 ] && ok || died
        else
                # show "%s service is not running." Bluetooth
                msg_not_running Bluetooth
@@ -90,17 +92,17 @@ case "$1" in
        fi
        ;;
   force-reload)
-       # if program allows reloading without stopping
+       # if program allows reloading without stopping
        $0 reload
        ;;
   status)
        status hcid
        RETVAL=$?
-        ;;
+       ;;
   *)
-        # show "Usage: %s {start|stop|restart|reload|force-reload|status}"
-       msg_usage "$0 {start|stop|status|restart|reload|force-reload|status}"
-        exit 1
+       # show "Usage: %s {start|stop|restart|reload|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 1
 esac
 
 exit $RETVAL
This page took 0.031874 seconds and 4 git commands to generate.