2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
5 # Script for executing Bluetooth stack
9 /usr/etc/bluetooth/bt-dev-start.sh
11 if !(/usr/bin/hciconfig | grep hci); then
12 echo "Registering BT device is failed."
16 # We have to handle both systemd and sysvinit cases differently
17 if [ -d /sys/fs/cgroup/systemd ]; then
18 # bt-service changes USER to 'app' via libprivilege-control, so it needs
19 # to know where the session bus is located under systemd
20 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/app/dbus/user_bus_socket
23 # Execute BlueZ BT stack
25 /usr/libexec/bluetooth/bluetoothd -d -C &
26 /usr/bin/bluetooth-share &