summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/bluez/run.hid2hci
blob: 6ef1f47cdf43d969ef3f151fb831603bcf4e8471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Start/stop the Bluetooth daemons
#

. /etc/rc.conf
. /etc/rc.d/functions

[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth

svwaitup 3 /var/service/bluetoothd || exit 1

    stat_runit "Starting Bluetooth HID to HCI mode switching utility"
      /usr/bin/hid2hci --tohci > /dev/null 2>&1 || true
      /sbin/sv down .