From 79f13a51c1bcfc51afd4e80d182a5d2bc4491694 Mon Sep 17 00:00:00 2001 From: ankry Date: Sun, 4 May 2003 20:17:13 +0000 Subject: [PATCH] - cleaning Changed files: bluez-utils.init -> 1.3 --- bluez-utils.init | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bluez-utils.init b/bluez-utils.init index 49f23d0..4de86b0 100644 --- a/bluez-utils.init +++ b/bluez-utils.init @@ -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 -- 2.44.0