From 645f8abf8f3fd1149e7f0004099c362a05333a7d Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 5 Jun 2017 14:38:26 +0900 Subject: [PATCH] Remove the unused session bus environement setting Change-Id: Ibe3daa60fc6ae9dd34892ff5c6d578c225bc6fb5 Signed-off-by: DoHyun Pyun --- scripts/etc/bt-stack-up.sh | 7 ------- scripts/ivi/bt-stack-up.sh | 7 ------- scripts/mobile/bt-stack-up.sh | 7 ------- 3 files changed, 21 deletions(-) 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 & -- 2.7.4