Run bt-stack-down.sh script as network_fw permission
[platform/core/connectivity/bluetooth-tools.git] / scripts / mobile / bt-stack-down-with-radio.sh
1 #!/bin/sh
2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
3
4 #
5 # Script for stopping Bluetooth stack
6 #
7
8 # If radio is on, should not call the device down script
9 #/usr/etc/bluetooth/bt-dev-end.sh
10
11 # Stop HCI logging
12 systemctl stop bluetooth-hci-logger.service
13
14 # Kill BlueZ bluetooth stack
15 pkill --full obexd
16 pkill --full obexd-client
17 pkill --full bt-syspopup
18 pkill --full bluetooth-share
19 pkill --full bluetooth-pb-agent
20 pkill --full bluetooth-map-agent
21 pkill --full bluetooth-hfp-agent
22 pkill --full bluetooth-ag-agent
23 pkill --full bluetoothd
24
25 # result
26 exit 0