mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 20:02:30 +01:00
the udev rules to start up bluetoothd rules have been removed from upstream. http://git.kernel.org/?p=bluetooth/bluez.git;a=commit;h=2ea98a6a043710ad4958355b62c682b4767f292e
28 lines
668 B
Plaintext
28 lines
668 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d,v 1.1 2011/12/31 21:09:18 pacho Exp $
|
|
|
|
depend() {
|
|
after coldplug
|
|
need dbus localmount hostname
|
|
}
|
|
|
|
start() {
|
|
if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then
|
|
if [ -f "${RFCOMM_CONFIG}" ]; then
|
|
ebegin "Starting rfcomm"
|
|
/usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all
|
|
eend $?
|
|
else
|
|
ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists"
|
|
fi
|
|
fi
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Shutting down rfcomm"
|
|
/usr/bin/rfcomm release all
|
|
eend $?
|
|
}
|