Modify bluetooth logdump scripts
[platform/core/connectivity/bluetooth-tools.git] / scripts / wearable / 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 systemctl stop bluetooth-hci-logger.service
13
14 # Kill BlueZ bluetooth stack
15 killall obexd obex-client
16 killall bluetooth-pb-agent
17 killall bluetooth-map-agent
18 killall bluetooth-hfp-agent
19 killall bluetooth-hf-agent
20 killall bluetooth-ag-agent
21 killall bluetoothd
22
23 # result
24 exit 0