From: Taejin Woo Date: Thu, 14 Apr 2016 06:49:58 +0000 (+0900) Subject: Fix incorrect path for bluetoothd X-Git-Tag: accepted/tizen/common/20160414.142900^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ddb59fb4f51771a7cc1af511c226545b2837d77;hp=d46ac3419642fa5a31fd4019581611e357c04476;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git Fix incorrect path for bluetoothd Change-Id: I946c8fcf18df83dad544567e357f8ba9afc5cac5 Signed-off-by: Taejin Woo --- diff --git a/scripts/etc/bt-stack-up.sh b/scripts/etc/bt-stack-up.sh index b48d955..e032d13 100644 --- a/scripts/etc/bt-stack-up.sh +++ b/scripts/etc/bt-stack-up.sh @@ -8,25 +8,20 @@ /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." exit 1 fi -# Execute BlueZ BT stack -echo "Run bluetoothd" - # 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 - 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 fi -/usr/bin/bt-service & +# Execute BlueZ BT stack +echo "Run bluetoothd" +/usr/libexec/bluetooth/bluetoothd -d -C & /usr/bin/bluetooth-share & exit 0