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 | ae44446ac55f8cd2fe14f7ef914cfb3c5c1d535e (patch) | |
tree | 8fd7d4393c3fec72600b61e97a4e39980ea1d856 /net-wireless/bluez-utils | |
parent | Version bump. (diff) | |
download | historical-ae44446ac55f8cd2fe14f7ef914cfb3c5c1d535e.tar.gz historical-ae44446ac55f8cd2fe14f7ef914cfb3c5c1d535e.tar.bz2 historical-ae44446ac55f8cd2fe14f7ef914cfb3c5c1d535e.zip |
Adding directory
Diffstat (limited to 'net-wireless/bluez-utils')
-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 $? +} + |