Modify bluetooth logdump scripts
[platform/core/connectivity/bluetooth-tools.git] / scripts / mobile / bt-stack-up.sh
old mode 100755 (executable)
new mode 100644 (file)
index 9e4587b..3b144b2
@@ -5,11 +5,15 @@ 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
 
 if !(/usr/bin/hciconfig | grep hci); then
        echo "Registering BT device is failed."
+       systemctl stop bluetooth-hci-logger.service
        exit 1
 fi