diff options
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/bluez-utils/files/3.11/conf.d-hidd | 5 | ||||
-rw-r--r-- | net-wireless/bluez-utils/files/3.11/init.d-hidd | 29 |
2 files changed, 34 insertions, 0 deletions
diff --git a/net-wireless/bluez-utils/files/3.11/conf.d-hidd b/net-wireless/bluez-utils/files/3.11/conf.d-hidd new file mode 100644 index 000000000000..1677ef0f3556 --- /dev/null +++ b/net-wireless/bluez-utils/files/3.11/conf.d-hidd @@ -0,0 +1,5 @@ +# Bluetooth hidd daemon configuraton file + +# Arguments to hidd +HIDD_OPTIONS="--encrypt" + diff --git a/net-wireless/bluez-utils/files/3.11/init.d-hidd b/net-wireless/bluez-utils/files/3.11/init.d-hidd new file mode 100644 index 000000000000..862867bec4fb --- /dev/null +++ b/net-wireless/bluez-utils/files/3.11/init.d-hidd @@ -0,0 +1,29 @@ +#!/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-utils/files/3.11/init.d-hidd,v 1.1 2007/05/24 16:33:37 betelgeuse Exp $ + +depend() { + need bluetooth +} + +start() { + ebegin "Starting hidd" + start-stop-daemon --start --quiet \ + --exec /usr/bin/hidd -- ${HIDD_OPTIONS} --server + local result="$?" + local service="/etc/bluetooth/input.service" + if [ "${result}" != "0" ] && grep "Autostart=true" ${service} >/dev/null; 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 $? +} + |