summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d46ac34)
Change-Id: I946c8fcf18df83dad544567e357f8ba9afc5cac5
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
/usr/etc/bluetooth/bt-dev-start.sh
if !(/usr/bin/hciconfig | grep hci); then
/usr/etc/bluetooth/bt-dev-start.sh
if !(/usr/bin/hciconfig | grep hci); then
- echo "Registering BT device failed."
+ echo "Registering BT device is failed."
-# Execute BlueZ BT stack
-echo "Run bluetoothd"
-
# We have to handle both systemd and sysvinit cases differently
if [ -d /sys/fs/cgroup/systemd ]; then
# We have to handle both systemd and sysvinit cases differently
if [ -d /sys/fs/cgroup/systemd ]; then
- # bt-service changes USER via libprivilege-control, so it needs
+ # bt-service changes USER to 'app' via libprivilege-control, so it needs
# to know where the session bus is located under systemd
# to know where the session bus is located under systemd
- export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/dbus/user_bus_socket
-else
- # Under systemd, bluetoothd is dbus activated. sysvinit requires it to be
- # launched explicitly
- /lib/bluetooth/bluetoothd -E
+ export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/app/dbus/user_bus_socket
+# Execute BlueZ BT stack
+echo "Run bluetoothd"
+/usr/libexec/bluetooth/bluetoothd -d -C &
/usr/bin/bluetooth-share &
exit 0
/usr/bin/bluetooth-share &
exit 0