summaryrefslogtreecommitdiff
path: root/pcr/openrc-desktop/bluetooth-init.d-r3
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/openrc-desktop/bluetooth-init.d-r3')
-rw-r--r--pcr/openrc-desktop/bluetooth-init.d-r321
1 files changed, 21 insertions, 0 deletions
diff --git a/pcr/openrc-desktop/bluetooth-init.d-r3 b/pcr/openrc-desktop/bluetooth-init.d-r3
new file mode 100644
index 000000000..f97fdb2c7
--- /dev/null
+++ b/pcr/openrc-desktop/bluetooth-init.d-r3
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d-r3,v 1.2 2014/01/09 13:24:42 joker Exp $
+
+depend() {
+ after coldplug
+ need dbus localmount hostname
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --background --exec /usr/libexec/bluetooth/bluetoothd
+ eend $?
+}
+
+stop() {
+ ebegin "Shutting down ${SVCNAME}"
+ start-stop-daemon --stop --quiet --exec /usr/libexec/bluetooth/bluetoothd
+ eend $?
+}