Commit f3b316ae authored by Natanael Copa's avatar Natanael Copa

testing/bluez5: add support for auto enable adapters

it helps if you have bluetooth keyboard
parent 0510b6c9
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bluez5 pkgname=bluez5
pkgver=5.7 pkgver=5.7
pkgrel=1 pkgrel=2
pkgdesc="Tools for the Bluetooth protocol stack" pkgdesc="Tools for the Bluetooth protocol stack"
url="http://www.bluez.org/" url="http://www.bluez.org/"
arch="all" arch="all"
...@@ -62,14 +62,14 @@ hid2hci() { ...@@ -62,14 +62,14 @@ hid2hci() {
} }
md5sums="eb883ce61753bd3f300a531bcc2af49e bluez-5.7.tar.bz2 md5sums="eb883ce61753bd3f300a531bcc2af49e bluez-5.7.tar.bz2
5839bcffd931411e41a16e5aaa15d6f7 bluetooth.initd 7a5611fa2cf42da2e844f96b2efa9f3b bluetooth.initd
7672edb8e33c4495ee9febb9864feb10 rfcomm.initd 7672edb8e33c4495ee9febb9864feb10 rfcomm.initd
7f4bb093adb0f519c621f2ea68712f35 rfcomm.confd" 7f4bb093adb0f519c621f2ea68712f35 rfcomm.confd"
sha256sums="8db8b024e3edd897b30290134ad02920ad42f6cb0f93fcd6f7057672a4e28f7d bluez-5.7.tar.bz2 sha256sums="8db8b024e3edd897b30290134ad02920ad42f6cb0f93fcd6f7057672a4e28f7d bluez-5.7.tar.bz2
4f17988e6551d5eced1d79167c3cbcdffa0aa2ae8cbb4b91ed0884369ac0bcc9 bluetooth.initd d4aef203e184bef4284b3719268c91e07a1e3f84cbdea2ac8ab40a2617ac9186 bluetooth.initd
4430703a9bec9a9482416b2d24aa47492264768a0b61356b361bbc8b1229a83e rfcomm.initd 4430703a9bec9a9482416b2d24aa47492264768a0b61356b361bbc8b1229a83e rfcomm.initd
672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08 rfcomm.confd" 672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08 rfcomm.confd"
sha512sums="edce3504708ad5e5717941c668bc285c17c5ccc5dea82881d2e9d25fe266f98294dacf0e79d4ca4a68ffb204c328fef75d4cdab1b4f4750156ccdc5b9662e2a3 bluez-5.7.tar.bz2 sha512sums="edce3504708ad5e5717941c668bc285c17c5ccc5dea82881d2e9d25fe266f98294dacf0e79d4ca4a68ffb204c328fef75d4cdab1b4f4750156ccdc5b9662e2a3 bluez-5.7.tar.bz2
d1d37c94336b354773d1ebeff14c690ccab6fbb4f2f4dfa90b1811dc438d97bd4e56ed88ef4a63b014938cbff2a75d1659c745d09198923d3448cdc37ff4b130 bluetooth.initd 2c13cde6561c5aa8b2f27306851458966c67853f6ac2358d09019fda14d3d8e3ff6d9f1c90512c67063d1e1954ec05bf117c5fafc7716446cc5786e9cc12c49f bluetooth.initd
8f14b4e05c9ecaf4586ed2fdc2d2519de6b613de62ae5c95508baa682630f3112c5b6db6850f76679afc49e06f2ad035d148fa30b9b980747b6fb423f7bebe88 rfcomm.initd 8f14b4e05c9ecaf4586ed2fdc2d2519de6b613de62ae5c95508baa682630f3112c5b6db6850f76679afc49e06f2ad035d148fa30b9b980747b6fb423f7bebe88 rfcomm.initd
a70aa0dbbabe7e29ee81540a6f98bf191a850da55a28f678975635caf34b363cf4d461a801b3484120ee28fdd21240bd456a4f5d706262700924bd2e9a0972fb rfcomm.confd" a70aa0dbbabe7e29ee81540a6f98bf191a850da55a28f678975635caf34b363cf4d461a801b3484120ee28fdd21240bd456a4f5d706262700924bd2e9a0972fb rfcomm.confd"
...@@ -11,3 +11,15 @@ depend() { ...@@ -11,3 +11,15 @@ depend() {
need dbus localmount 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
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment