2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
6 # Script for stopping Bluetooth stack
10 /usr/etc/bluetooth/bt-dev-end.sh
12 # Kill BlueZ bluetooth stack
14 if ($PGREP bluetooth); then
15 BLUETOOTH_PID=$($PGREP bluetooth)
19 if ($PGREP obexd); then
20 OBEXD_PID=$($PGREP obexd)
24 if ($PGREP obexd-client); then
25 OBEXDCLIENT_PID=$($PGREP obexd-client)
29 if ($PGREP bluetooth-share); then
30 BTSHARE_PID=$($PGREP bluetooth-share)
34 if ($PGREP bluetooth-pb-agent); then
35 BTPB_AGENT_PID=$($PGREP bluetooth-pb-agent)
39 if ($PGREP bluetooth-map-agent); then
40 BTMAP_AGENT_PID=$($PGREP bluetooth-map-agent)
44 if ($PGREP bluetooth-hfp-agent); then
45 BTHFP_AGENT_PID=$($PGREP bluetooth-hfp-agent)
49 if ($PGREP bluetoothd); then
50 BLUETOOTHD_PID=$($PGREP bluetoothd)