aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bluez5/bluetooth.initd
blob: a3eab5628d9876ca45c47906736f593615dd8146 (plain) (blame)
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/runscript

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
}