4 # Script for executing Bluetooth stack
8 /usr/etc/bluetooth/bt-dev-start.sh
10 if !(/usr/bin/hciconfig | grep hci); then
11 echo "Registering BT device failed."
15 # Execute BlueZ BT stack
18 # We have to handle both systemd and sysvinit cases differently
19 if [ -d /sys/fs/cgroup/systemd ]; then
20 # bt-service changes USER via libprivilege-control, so it needs
21 # to know where the session bus is located under systemd
22 export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/dbus/user_bus_socket
24 # Under systemd, bluetoothd is dbus activated. sysvinit requires it to be
26 /lib/bluetooth/bluetoothd -E
30 /usr/bin/bluetooth-share &