Changed files:
bluez.init -> 1.3
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
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
reload|force-reload)
if [ -f /var/lock/subsys/bluetooth ]; then
msg_reloading hcid
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