Run bt-stack-down.sh script as network_fw permission
[platform/core/connectivity/bluetooth-tools.git] / scripts / etc / 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 # Kill BlueZ bluetooth stack
13
14 pkill --full obexd
15 pkill --full obexd-client
16 pkill --full bt-syspopup
17 pkill --full bluetooth-pb-agent
18 pkill --full bluetooth-map-agent
19 pkill --full bluetooth-hfp-agent
20 pkill --full bluetoothd
21
22 # result
23 exit 0