aboutsummaryrefslogblamecommitdiffstats
path: root/testing/bluez5/bluetooth.initd
blob: a3eab5628d9876ca45c47906736f593615dd8146 (plain) (tree)
1
2
3
4
5
6



                                       

                                                    






                            











                                          
#!/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
}