From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-wireless/bluez/files: rfcomm-conf.d rfcomm-init.d bluez-4.67-udev.script |
Date: | Sat, 31 Dec 2011 21:09:28 |
Message-Id: | 20111231210919.10E632004C@flycatcher.gentoo.org |
1 | pacho 11/12/31 21:09:19 |
2 | |
3 | Added: rfcomm-conf.d rfcomm-init.d bluez-4.67-udev.script |
4 | Log: |
5 | Version bump, remove old. |
6 | |
7 | (Portage version: 2.1.10.44/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-wireless/bluez/files/rfcomm-conf.d |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/rfcomm-conf.d?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/rfcomm-conf.d?rev=1.1&content-type=text/plain |
14 | |
15 | Index: rfcomm-conf.d |
16 | =================================================================== |
17 | # Bind rfcomm devices (allowed values are "true" and "false") |
18 | RFCOMM_ENABLE=true |
19 | |
20 | # Config file for rfcomm |
21 | RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" |
22 | |
23 | |
24 | |
25 | 1.1 net-wireless/bluez/files/rfcomm-init.d |
26 | |
27 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d?rev=1.1&view=markup |
28 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d?rev=1.1&content-type=text/plain |
29 | |
30 | Index: rfcomm-init.d |
31 | =================================================================== |
32 | #!/sbin/runscript |
33 | # Copyright 1999-2011 Gentoo Foundation |
34 | # Distributed under the terms of the GNU General Public License v2 |
35 | # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d,v 1.1 2011/12/31 21:09:18 pacho Exp $ |
36 | |
37 | depend() { |
38 | after coldplug |
39 | need dbus localmount hostname |
40 | } |
41 | |
42 | start() { |
43 | if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then |
44 | if [ -f "${RFCOMM_CONFIG}" ]; then |
45 | ebegin "Starting rfcomm" |
46 | /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all |
47 | eend $? |
48 | else |
49 | ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" |
50 | fi |
51 | fi |
52 | } |
53 | |
54 | stop() { |
55 | ebegin "Shutting down rfcomm" |
56 | /usr/bin/rfcomm release all |
57 | eend $? |
58 | } |
59 | |
60 | |
61 | |
62 | 1.1 net-wireless/bluez/files/bluez-4.67-udev.script |
63 | |
64 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/bluez-4.67-udev.script?rev=1.1&view=markup |
65 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/bluez-4.67-udev.script?rev=1.1&content-type=text/plain |
66 | |
67 | Index: bluez-4.67-udev.script |
68 | =================================================================== |
69 | #!/bin/sh |
70 | # |
71 | # bluetooth.sh: udev external RUN script |
72 | # |
73 | # Copyright: |
74 | # 2005-2006 Henrik Brix Andersen <brix@g.o> |
75 | # 2007 Petteri Räty <betelgeuse@g.o> |
76 | # 2008 Tiziano Müller <dev-zero@g.o> |
77 | # 2011 Pacho Ramos <pacho@g.o> |
78 | # Distributed under the terms of the GNU General Public License v2 |
79 | |
80 | # Find out where sysfs is mounted. Exit if not available |
81 | sysfs=`grep -F sysfs /proc/mounts | awk '{print $2}'` |
82 | if [ "$sysfs" = "" ]; then |
83 | echo "sysfs is required" |
84 | exit 1 |
85 | fi |
86 | |
87 | if [ ! -d $sysfs/class/bluetooth/hci[0-9]* -a ! -d $sysfs/bus/bluetooth/devices/hci[0-9]* ]; then |
88 | udevadm trigger --subsystem-match=bluetooth --action=add |
89 | fi |