/[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.2 - (show annotations) (download)
Sun Mar 20 16:57:35 2011 UTC (3 years, 6 months ago) by pacho
Branch: MAIN
Changes since 1.1: +3 -3 lines
Version bump, remove old, bump to eapi4, don't install .c and .o files (bug #356529 by Alec M.), init script needs hostname (bug #356739 by Johan Myreen), libnl dep is no longer needed (bug #359105 by Yaroslav Isakov).

(Portage version: 2.1.9.43/cvs/Linux x86_64)

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