Execute hid-agent in bt-stack-up.sh
[platform/core/connectivity/bluetooth-tools.git] / scripts / wearable / 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 /usr/bin/touch /run/.hci_logger_stop
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-pb-agent
21 pkill --full bluetooth-map-agent
22 pkill --full bluetooth-hid-agent
23 pkill --full bluetooth-hf-agent
24 pkill --full bluetooth-ag-agent
25 pkill --full bluetoothd
26
27 # result
28 exit 0