Execute hid-agent in bt-stack-up.sh
[platform/core/connectivity/bluetooth-tools.git] / scripts / wearable / bt-stack-down.sh
index ae3e496..c2e0b75 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
+PGREP=/usr/bin/pgrep
 
 #
 # Script for stopping Bluetooth stack
@@ -12,13 +13,16 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
 /usr/bin/touch /run/.hci_logger_stop
 
 # Kill BlueZ bluetooth stack
-killall obexd obex-client
-killall bluetooth-pb-agent
-killall bluetooth-map-agent
-killall bluetooth-hfp-agent
-killall bluetooth-hf-agent
-killall bluetooth-ag-agent
-killall bluetoothd
+
+pkill --full obexd
+pkill --full obexd-client
+pkill --full bt-syspopup
+pkill --full bluetooth-pb-agent
+pkill --full bluetooth-map-agent
+pkill --full bluetooth-hid-agent
+pkill --full bluetooth-hf-agent
+pkill --full bluetooth-ag-agent
+pkill --full bluetoothd
 
 # result
 exit 0