diff options
Diffstat (limited to 'main/bluez/bluetooth.initd')
-rw-r--r-- | main/bluez/bluetooth.initd | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/main/bluez/bluetooth.initd b/main/bluez/bluetooth.initd index d9d5d9c917..a3eab5628d 100644 --- a/main/bluez/bluetooth.initd +++ b/main/bluez/bluetooth.initd @@ -1,10 +1,25 @@ #!/sbin/runscript name="Bluetooth" -command="/usr/sbin/bluetoothd" +command="/usr/lib/bluetooth/bluetoothd" +pidfile="/var/run/bluetoothd.pid" +start_stop_daemon_args="--background --make-pidfile" + depend() { after coldplug need dbus localmount } +start_post() { + local adapter + eindent + for adapter in $AUTO_ENABLE; do + ebegin "Enabling $adapter" + hciconfig $adapter up + eend + done + eoutdent + return 0 +} + |