From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-wireless/bluez/files: init.d-hidd bluetooth-init.d |
Date: | Tue, 07 Sep 2010 11:00:33 |
Message-Id: | 20100907110027.2860220051@flycatcher.gentoo.org |
1 | pacho 10/09/07 11:00:27 |
2 | |
3 | Added: init.d-hidd bluetooth-init.d |
4 | Log: |
5 | Version bump and fix bug #283057 |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-wireless/bluez/files/init.d-hidd |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/init.d-hidd?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/init.d-hidd?rev=1.1&content-type=text/plain |
13 | |
14 | Index: init.d-hidd |
15 | =================================================================== |
16 | #!/sbin/runscript |
17 | # Copyright 1999-2007 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/init.d-hidd,v 1.1 2010/09/07 11:00:27 pacho Exp $ |
20 | |
21 | depend() { |
22 | need bluetooth |
23 | } |
24 | |
25 | start() { |
26 | local result service |
27 | |
28 | ebegin "Starting hidd" |
29 | start-stop-daemon --start --quiet \ |
30 | --exec /usr/bin/hidd -- ${HIDD_OPTIONS} --server |
31 | result="$?" |
32 | service="/etc/bluetooth/input.service" |
33 | if [ ${result} -ne 0 ] && grep -q "Autostart=true" "${service}"; then |
34 | eerror "You have Autostart=true in ${service}." |
35 | eerror "Change this to false if you want to use hidd." |
36 | fi |
37 | eend ${result} |
38 | } |
39 | |
40 | stop() { |
41 | ebegin "Stopping hidd" |
42 | hidd --killall |
43 | start-stop-daemon --stop --quiet --exec /usr/bin/hidd |
44 | eend $? |
45 | } |
46 | |
47 | |
48 | |
49 | 1.1 net-wireless/bluez/files/bluetooth-init.d |
50 | |
51 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d?rev=1.1&view=markup |
52 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d?rev=1.1&content-type=text/plain |
53 | |
54 | Index: bluetooth-init.d |
55 | =================================================================== |
56 | #!/sbin/runscript |
57 | # Copyright 1999-2008 Gentoo Foundation |
58 | # Distributed under the terms of the GNU General Public License v2 |
59 | # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d,v 1.1 2010/09/07 11:00:27 pacho Exp $ |
60 | |
61 | depend() { |
62 | after coldplug |
63 | need dbus localmount |
64 | } |
65 | |
66 | start() { |
67 | ebegin "Starting Bluetooth" |
68 | |
69 | udevadm trigger --subsystem-match=bluetooth --action=add |
70 | eend $? |
71 | |
72 | if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then |
73 | if [ -f "${RFCOMM_CONFIG}" ]; then |
74 | eindent |
75 | ebegin "Starting rfcomm" |
76 | /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all |
77 | eoutdent |
78 | eend $? |
79 | else |
80 | ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" |
81 | fi |
82 | fi |
83 | } |
84 | |
85 | stop() { |
86 | ebegin "Shutting down Bluetooth" |
87 | eend 0 |
88 | } |