]> git.pld-linux.org Git - packages/bluez.git/blobdiff - bluez.init
- 4.14
[packages/bluez.git] / bluez.init
index 00cacb8da9a01f30048339fd57fe59983045a063..a45ca2d2fbeb71c16a0b578437484abec32f1105 100644 (file)
@@ -22,7 +22,12 @@ fi
 start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/bluetooth ]; then
-               msg_starting bluetooth; started
+               if is_yes "${DAEMON_ENABLE}" && [ -x /usr/sbin/bluetoothd ]; then
+                       msg_starting bluetooth
+                       daemon /usr/sbin/bluetoothd
+                       RETVAL=$?
+               fi
+
                if is_yes "${HID2HCI_ENABLE}" && [ -x /usr/sbin/hid2hci ]; then
                        msg_starting hid2hci
                        daemon /usr/sbin/hid2hci -0 -q    #be quiet
@@ -103,6 +108,11 @@ stop() {
                        killproc /usr/sbin/hcid
                fi
 
+               if is_yes "${DAEMON_ENABLE}" && [ -x /usr/sbin/bluetoothd ]; then
+                       msg_stopping bluetooth
+                       killproc /usr/sbin/bluetoothd
+               fi
+
                if [ "$UART_CONF" != "no" ]; then
                        killproc hciattach >/dev/null 2>&1
                fi
This page took 0.033354 seconds and 4 git commands to generate.