3 PATH=/sbin:/bin:/usr/sbin:/usr/bin
6 DAEMON=@LIBEXECDIR@/bluetooth/bluetoothd
8 # If you want to be ignore error of "org.freedesktop.hostname1",
9 # please enable NOPLUGIN_OPTION.
10 # NOPLUGIN_OPTION="--noplugin=hostname"
12 SSD_OPTIONS="--oknodo --quiet --exec $DAEMON -- $NOPLUGIN_OPTION"
14 test -f $DAEMON || exit 0
16 # FIXME: any of the sourced files may fail if/with syntax errors
17 test -f /etc/default/bluetooth && . /etc/default/bluetooth
18 test -f /etc/default/rcS && . /etc/default/rcS
26 if test "$BLUETOOTH_ENABLED" = 0; then
27 echo "disabled. see /etc/default/bluetooth"
31 start-stop-daemon --start --background $SSD_OPTIONS
37 if test "$BLUETOOTH_ENABLED" = 0; then
41 start-stop-daemon --stop $SSD_OPTIONS
50 pidof ${DAEMON} >/dev/null
52 if [ $status -eq 0 ]; then
53 echo "bluetooth is running."
55 echo "bluetooth is not running"
60 N=/etc/init.d/bluetooth
61 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2