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 is failed."
15 # We have to handle both systemd and sysvinit cases differently
16 if [ -d /sys/fs/cgroup/systemd ]; then
17 # bt-service changes USER to 'app' via libprivilege-control, so it needs
18 # to know where the session bus is located under systemd
19 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/app/dbus/user_bus_socket
22 # Execute BlueZ BT stack
24 /usr/libexec/bluetooth/bluetoothd -d -C &
25 /usr/bin/bluetooth-share &