2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
6 # Script for stopping Bluetooth stack
10 /usr/etc/bluetooth/bt-dev-end.sh
13 /usr/bin/touch /run/.hci_logger_stop
15 # Kill BlueZ bluetooth stack
17 OBEXD_PID=$($PGREP obexd)
18 if [ "$OBEXD_PID" != "" ]; then
22 OBEXDCLIENT_PID=$($PGREP obexd-client)
23 if [ "$OBEXDCLIENT_PID" != "" ]; then
27 BTSYSPOPUP_PID=$($PGREP bt-syspopup)
28 if [ "BTSYSPOPUP_PID" != "" ]; then
32 BTSHARE_PID=$($PGREP bluetooth-share)
33 if [ "$BTSHARE_PID" != "" ]; then
37 BTPB_AGENT_PID=$($PGREP bluetooth-pb-agent)
38 if [ "$BTPB_AGENT_PID" != "" ]; then
42 BTMAP_AGENT_PID=$($PGREP bluetooth-map-agent)
43 if [ "$BTMAP_AGENT_PID" != "" ]; then
47 BTHFP_AGENT_PID=$($PGREP bluetooth-hfp-agent)
48 if [ "$BTHFP_AGENT_PID" != "" ]; then
52 BTAG_AGENT_PID=$($PGREP bluetooth-ag-agent)
53 if [ "$BTAG_AGENT_PID" != "" ]; then
57 BLUETOOTHD_PID=$($PGREP bluetoothd)
58 if [ "$BLUETOOTHD_PID" != "" ]; then