/[gentoo-x86]/net-wireless/bluez/files/bluetooth-init.d
Gentoo

Contents of /net-wireless/bluez/files/bluetooth-init.d

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Sep 7 11:00:27 2010 UTC (4 years, 2 months ago) by pacho
Branch: MAIN
Version bump and fix bug #283057
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2008 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.60/bluetooth-init.d,v 1.2 2010/06/11 10:14:00 pacho Exp $
5
6 depend() {
7 after coldplug
8 need dbus localmount
9 }
10
11 start() {
12 ebegin "Starting Bluetooth"
13
14 udevadm trigger --subsystem-match=bluetooth --action=add
15 eend $?
16
17 if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then
18 if [ -f "${RFCOMM_CONFIG}" ]; then
19 eindent
20 ebegin "Starting rfcomm"
21 /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all
22 eoutdent
23 eend $?
24 else
25 ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists"
26 fi
27 fi
28 }
29
30 stop() {
31 ebegin "Shutting down Bluetooth"
32 eend 0
33 }

  ViewVC Help
Powered by ViewVC 1.1.20