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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Sep 7 11:00:27 2010 UTC (3 years, 10 months ago) by pacho
Branch: MAIN
Version bump and fix bug #283057
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.18/init.d-hidd,v 1.1 2008/11/28 21:21:35 dev-zero Exp $
5
6 depend() {
7 need bluetooth
8 }
9
10 start() {
11 local result service
12
13 ebegin "Starting hidd"
14 start-stop-daemon --start --quiet \
15 --exec /usr/bin/hidd -- ${HIDD_OPTIONS} --server
16 result="$?"
17 service="/etc/bluetooth/input.service"
18 if [ ${result} -ne 0 ] && grep -q "Autostart=true" "${service}"; then
19 eerror "You have Autostart=true in ${service}."
20 eerror "Change this to false if you want to use hidd."
21 fi
22 eend ${result}
23 }
24
25 stop() {
26 ebegin "Stopping hidd"
27 hidd --killall
28 start-stop-daemon --stop --quiet --exec /usr/bin/hidd
29 eend $?
30 }

  ViewVC Help
Powered by ViewVC 1.1.20