/[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.3 - (hide annotations) (download)
Tue Feb 12 19:32:06 2013 UTC (22 months, 1 week ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 pacho 1.1 #!/sbin/runscript
2 pacho 1.2 # Copyright 1999-2011 Gentoo Foundation
3 pacho 1.1 # Distributed under the terms of the GNU General Public License v2
4 pacho 1.3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d,v 1.2 2011/03/20 16:57:35 pacho Exp $
5 pacho 1.1
6     depend() {
7     after coldplug
8 pacho 1.2 need dbus localmount hostname
9 pacho 1.1 }
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