diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-24 16:33:37 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-24 16:33:37 +0000 |
commit | a4fdba48f674c5e3c6e44ab4e0944768674ca693 (patch) | |
tree | d73888a774a9853c5c41cbdab30b4c1d07e6f5ba /net-wireless/bluez-utils/files | |
parent | Version bump. (diff) | |
download | gentoo-2-a4fdba48f674c5e3c6e44ab4e0944768674ca693.tar.gz gentoo-2-a4fdba48f674c5e3c6e44ab4e0944768674ca693.tar.bz2 gentoo-2-a4fdba48f674c5e3c6e44ab4e0944768674ca693.zip |
Adding directory
Diffstat (limited to 'net-wireless/bluez-utils/files')
-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 $? +} + |