Modify the bt-stack-up.sh script
[platform/core/connectivity/bluetooth-tools.git] / scripts / mobile / bt-stack-down.sh
1 #!/bin/sh
2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
3
4 #
5 # Script for stopping Bluetooth stack
6 #
7
8 # Remove BT device
9 /usr/etc/bluetooth/bt-dev-end.sh
10
11 # Stop HCI logging
12 /usr/bin/touch /run/.hci_logger_stop
13
14 # Kill BlueZ bluetooth stack
15 killall obexd obex-client
16 killall bt-syspopup
17 killall bluetooth-pb-agent
18 killall bluetooth-map-agent
19 killall bluetooth-hfp-agent
20 killall bluetooth-ag-agent
21 killall bluetoothd
22 killall bluetooth-share
23
24 # result
25 exit 0