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