Change-Id: Ibe3daa60fc6ae9dd34892ff5c6d578c225bc6fb5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
exit 1
fi
-# We have to handle both systemd and sysvinit cases differently
-if [ -d /sys/fs/cgroup/systemd ]; then
- # bt-service changes USER to 'app' via libprivilege-control, so it needs
- # to know where the session bus is located under systemd
- export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/app/dbus/user_bus_socket
-fi
-
# Execute BlueZ BT stack
echo "Run bluetoothd"
/usr/libexec/bluetooth/bluetoothd -d -C &
exit 1
fi
-# We have to handle both systemd and sysvinit cases differently
-if [ -d /sys/fs/cgroup/systemd ]; then
- # bt-service changes USER to 'app' via libprivilege-control, so it needs
- # to know where the session bus is located under systemd
- export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/app/dbus/user_bus_socket
-fi
-
# Execute BlueZ BT stack
echo "Run bluetoothd"
/usr/libexec/bluetooth/bluetoothd -d -C &
exit 1
fi
-# We have to handle both systemd and sysvinit cases differently
-if [ -d /sys/fs/cgroup/systemd ]; then
- # bt-service changes USER to 'app' via libprivilege-control, so it needs
- # to know where the session bus is located under systemd
- export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/app/dbus/user_bus_socket
-fi
-
# Execute BlueZ BT stack
echo "Run bluetoothd"
/usr/libexec/bluetooth/bluetoothd -d -C &