diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-06 19:40:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-06 19:41:05 +0000 |
commit | 8d36e7d94c0c940d7eac811b442e210221e1275f (patch) | |
tree | f4ed6a9f8c69bd197613da3b789d9fbe6f6104c5 /main/bluez/bluetooth.initd | |
parent | dbe47b47d727acd5341ecd135ef944399d62c9d0 (diff) | |
download | aports-8d36e7d94c0c940d7eac811b442e210221e1275f.tar.bz2 aports-8d36e7d94c0c940d7eac811b442e210221e1275f.tar.xz |
main/bluez: moved from testing
Diffstat (limited to 'main/bluez/bluetooth.initd')
-rw-r--r-- | main/bluez/bluetooth.initd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/main/bluez/bluetooth.initd b/main/bluez/bluetooth.initd new file mode 100644 index 0000000000..ef25720bf6 --- /dev/null +++ b/main/bluez/bluetooth.initd @@ -0,0 +1,32 @@ +#!/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 +} |