From: DoHyun Pyun Date: Mon, 5 Jun 2017 05:38:26 +0000 (+0900) Subject: Remove the unused session bus environement setting X-Git-Tag: accepted/tizen/unified/20180226.142343~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F132426%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git Remove the unused session bus environement setting Change-Id: Ibe3daa60fc6ae9dd34892ff5c6d578c225bc6fb5 Signed-off-by: DoHyun Pyun --- diff --git a/scripts/etc/bt-stack-up.sh b/scripts/etc/bt-stack-up.sh index c8f023a..4efff94 100644 --- a/scripts/etc/bt-stack-up.sh +++ b/scripts/etc/bt-stack-up.sh @@ -13,13 +13,6 @@ if !(/usr/bin/hciconfig | grep hci); then 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 & diff --git a/scripts/ivi/bt-stack-up.sh b/scripts/ivi/bt-stack-up.sh index af0bd14..b6a7cd2 100644 --- a/scripts/ivi/bt-stack-up.sh +++ b/scripts/ivi/bt-stack-up.sh @@ -15,13 +15,6 @@ if !(/usr/bin/hciconfig | grep hci); then 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 & diff --git a/scripts/mobile/bt-stack-up.sh b/scripts/mobile/bt-stack-up.sh index 3b144b2..015d351 100644 --- a/scripts/mobile/bt-stack-up.sh +++ b/scripts/mobile/bt-stack-up.sh @@ -17,13 +17,6 @@ if !(/usr/bin/hciconfig | grep hci); then 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 &