diff options
author | Michael Hanson <hansonorders@verizon.net> | 2011-02-26 01:55:52 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2011-02-26 01:55:52 (GMT) |
commit | 647b0432f2f05ce0596c7333e9e0c0400a6f40f3 (patch) | |
tree | a1d8b9193dcb564919d24fed75598ad078ff32dc /abs/core/runit-scripts/runitscripts | |
parent | 1b5d8accc28f1822918843f31f75d84f5fc5e80f (diff) | |
download | linhes_pkgbuild-647b0432f2f05ce0596c7333e9e0c0400a6f40f3.zip linhes_pkgbuild-647b0432f2f05ce0596c7333e9e0c0400a6f40f3.tar.gz linhes_pkgbuild-647b0432f2f05ce0596c7333e9e0c0400a6f40f3.tar.bz2 |
runit-scripts: Add run scripts from bluez pkg
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
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 . |