aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bluez5/bluetooth.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-06 13:26:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-06 13:26:01 +0000
commitf3b316ae262e39e378b9a70d62a20b15ba451795 (patch)
tree572477760a6b4afcd70e1582e6925f0bbc2675b2 /testing/bluez5/bluetooth.initd
parent0510b6c9dcf70350bc549216941cdbbfbeec02ef (diff)
downloadaports-f3b316ae262e39e378b9a70d62a20b15ba451795.tar.gz
aports-f3b316ae262e39e378b9a70d62a20b15ba451795.tar.bz2
aports-f3b316ae262e39e378b9a70d62a20b15ba451795.tar.xz
testing/bluez5: add support for auto enable adapters
it helps if you have bluetooth keyboard
Diffstat (limited to 'testing/bluez5/bluetooth.initd')
-rw-r--r--testing/bluez5/bluetooth.initd12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/bluez5/bluetooth.initd b/testing/bluez5/bluetooth.initd
index 8196556680..a3eab5628d 100644
--- a/testing/bluez5/bluetooth.initd
+++ b/testing/bluez5/bluetooth.initd
@@ -11,3 +11,15 @@ depend() {
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
+}
+