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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Dec 31 21:09:18 2011 UTC (2 years, 8 months ago) by pacho
Branch: MAIN
Version bump, remove old.

(Portage version: 2.1.10.44/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: $
5
6 depend() {
7 after coldplug
8 need dbus localmount hostname
9 }
10
11 start() {
12 if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then
13 if [ -f "${RFCOMM_CONFIG}" ]; then
14 ebegin "Starting rfcomm"
15 /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all
16 eend $?
17 else
18 ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists"
19 fi
20 fi
21 }
22
23 stop() {
24 ebegin "Shutting down rfcomm"
25 /usr/bin/rfcomm release all
26 eend $?
27 }

  ViewVC Help
Powered by ViewVC 1.1.20