/[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.2 - (show annotations) (download)
Tue Feb 12 19:32:06 2013 UTC (22 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

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/init.d-hidd,v 1.1 2010/09/07 11:00:27 pacho 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