Fix HCI logger service's option to launch btmon
[platform/core/connectivity/bluetooth-tools.git] / scripts / mobile / bt-stack-down.sh
1 #!/bin/sh
2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
3 PGREP=/usr/bin/pgrep
4
5 #
6 # Script for stopping Bluetooth stack
7 #
8
9 # Remove BT device
10 /usr/etc/bluetooth/bt-dev-end.sh
11
12 # Stop HCI logging
13 systemctl stop bluetooth-hci-logger.service
14
15 # Kill BlueZ bluetooth stack
16
17 pkill --full obexd
18 pkill --full obexd-client
19 pkill --full bt-syspopup
20 pkill --full bluetooth-share
21 pkill --full bluetooth-pb-agent
22 pkill --full bluetooth-map-agent
23 pkill --full bluetooth-hfp-agent
24 pkill --full bluetooth-ag-agent
25 pkill --full bluetoothd
26
27 # result
28 exit 0