mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
33 lines
747 B
Plaintext
33 lines
747 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.60/bluetooth-init.d,v 1.1 2010/02/01 19:47:46 pacho Exp $
|
|
|
|
depend() {
|
|
after coldplug
|
|
need dbus localmount
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting Bluetooth"
|
|
|
|
if [ -x /sbin/udevadm ]; then
|
|
udevadm trigger --subsystem-match=bluetooth --action=add
|
|
eend $?
|
|
fi
|
|
|
|
if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then
|
|
if [ -f "${RFCOMM_CONFIG}" ]; then
|
|
/usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all
|
|
else
|
|
ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists"
|
|
fi
|
|
fi
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Shutting down Bluetooth"
|
|
eend 0
|
|
}
|