aboutsummaryrefslogtreecommitdiffstats
path: root/main/bluez/bluetooth.initd
blob: e1d95a873498a382fe1eca18e31902a3d2152abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/sbin/openrc-run

name="Bluetooth"
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
}