summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/rfcomm/run
blob: 2c2cbb5f2989fe4f85873415dea5e167d20b6144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
      /usr/bin/sv down .