summaryrefslogtreecommitdiff
path: root/pcr/openrc-desktop/bluetooth-init.d-r3
diff options
context:
space:
mode:
authorfreaj <freaj@riseup.net>2015-03-25 19:29:42 +0100
committerfreaj <freaj@riseup.net>2015-03-25 19:29:42 +0100
commit3051c65e16e655957c38bc1df237e170a50bd784 (patch)
tree5f1bdbcad064af9243389c1f8c93ad2d7c2e92be /pcr/openrc-desktop/bluetooth-init.d-r3
parentf955ecf3f6bc9af1733c4a12e27c5fac6d7d7d7f (diff)
openrc-desktop-20150325-1: Insert missing files
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 $?
+}