Fix HCI logger service's option to launch btmon
[platform/core/connectivity/bluetooth-tools.git] / scripts / mobile / bt-stack-up.sh
index 3b144b2..6e73382 100644 (file)
@@ -5,9 +5,6 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
 # Script for executing Bluetooth stack
 #
 
-# Start HCI logging
-systemctl start bluetooth-hci-logger.service
-
 # Register BT Device
 /usr/etc/bluetooth/bt-dev-start.sh
 
@@ -17,18 +14,4 @@ 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 &
-
-echo "Run bluetooth-share by systemd"
-systemctl start --no-block bluetooth-share.service
-
 exit 0