summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rw-r--r--abs/core/runit-scripts/runitscripts/services/bluetoothd/run12
-rw-r--r--abs/core/runit-scripts/runitscripts/services/dund/run14
-rw-r--r--abs/core/runit-scripts/runitscripts/services/hidd/run14
-rw-r--r--abs/core/runit-scripts/runitscripts/services/pand/run14
-rw-r--r--abs/core/runit-scripts/runitscripts/services/rfcomm/run17
5 files changed, 71 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/bluetoothd/run b/abs/core/runit-scripts/runitscripts/services/bluetoothd/run
new file mode 100644
index 0000000..7a92437
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/bluetoothd/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Start/stop the Bluetooth daemons
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth
+
+ stat_runit "Starting bluetooth subsystem:"
+ exec /usr/sbin/bluetoothd -n
diff --git a/abs/core/runit-scripts/runitscripts/services/dund/run b/abs/core/runit-scripts/runitscripts/services/dund/run
new file mode 100644
index 0000000..c42cfa1
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/dund/run
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Start/stop the Bluetooth daemons
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth
+
+svwaitup -s 3 /var/service/bluetoothd || exit 1
+
+ stat_runit "Starting BlueZ Bluetooth dial-up networking daemon"
+ exec /usr/bin/dund -n -s
diff --git a/abs/core/runit-scripts/runitscripts/services/hidd/run b/abs/core/runit-scripts/runitscripts/services/hidd/run
new file mode 100644
index 0000000..e4f66d3
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/hidd/run
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Start/stop the Bluetooth daemons
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth
+
+svwaitup -s 3 /var/service/bluetoothd || exit 1
+
+ stat_runit "Starting Bluetooth HID daemon:"
+ exec /usr/bin/hidd -n --server
diff --git a/abs/core/runit-scripts/runitscripts/services/pand/run b/abs/core/runit-scripts/runitscripts/services/pand/run
new file mode 100644
index 0000000..ab15ef6
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/pand/run
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Start/stop the Bluetooth daemons
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth
+
+svwaitup -s 3 /var/service/bluetoothd || exit 1
+
+ stat_runit "Starting BlueZ Bluetooth PAN daemon"
+ exec /usr/bin/pand -n -s
diff --git a/abs/core/runit-scripts/runitscripts/services/rfcomm/run b/abs/core/runit-scripts/runitscripts/services/rfcomm/run
new file mode 100644
index 0000000..8bc619b
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/rfcomm/run
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# Start/stop the Bluetooth daemons
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth
+
+RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
+
+svwaitup -s 3 /var/service/bluetoothd || exit 1
+
+ stat_runit "Starting RFCOMM for the bluetooth subsystem"
+ /usr/bin/rfcomm -f $RFCOMM_CONFIG bind all
+ /sbin/sv down .