/[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.2 - (show annotations) (download)
Mon Dec 23 23:05:20 2013 UTC (7 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Version bump. Major ebuild update, see bug #452162.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C6085806)

1 #!/sbin/runscript
2 # Copyright 1999-2013 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d,v 1.1 2011/12/31 21:09:18 pacho Exp $
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