aboutsummaryrefslogtreecommitdiffstats
path: root/main/bluez/bluetooth.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-29 12:50:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-29 12:50:08 +0000
commit87d28613b8a0b2e8f3ccaa7ed5ad689a25d1a852 (patch)
tree29ca799b34d4596c54f55e071360e4ad9a74ffda /main/bluez/bluetooth.initd
parent96b8a98c97a7ab84bb6f59e3eb4da0a65c434f99 (diff)
downloadaports-87d28613b8a0b2e8f3ccaa7ed5ad689a25d1a852.tar.bz2
aports-87d28613b8a0b2e8f3ccaa7ed5ad689a25d1a852.tar.xz
main/bluez: upgrade to 5.9 and remove bluez5
Diffstat (limited to 'main/bluez/bluetooth.initd')
-rw-r--r--main/bluez/bluetooth.initd17
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
+}
+