#
# bluetooth Bluetooth subsystem starting and stopping
#
-# chkconfig: 345 25 90
+# chkconfig: 345 25 90
#
# description: Bluetooth subsystem
#
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
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