Fix the file path for hciconfig / hciattach
[platform/adaptation/bluetooth-firmware-bcm.git] / scripts / bt-dev-end.sh
1 #!/bin/sh
2
3 #
4 # Script for stopping Broadcom UART Bluetooth stack
5 #
6
7 # Device down
8 /usr/bin/hciconfig hci0 down
9
10 # OMAP4
11 REVISION_NUM=`grep Revision /proc/cpuinfo | awk "{print \\$3}"`
12 if [ $REVISION_NUM == "0006" ]; then
13         rmmod bt_drv.ko
14         rmmod st_drv.ko
15         sleep 1
16         killall uim_rfkill
17         exit 0
18 fi
19
20 killall hciattach
21
22 # Turn off Bluetooth Chip
23 rfkill block bluetooth
24
25 #if [ -e /sys/class/gpio/gpio17/value ]
26 #then
27 #       # Reset BT chip
28 #       echo 0 > /sys/class/gpio/gpio17/value
29 #       sleep 0.1
30 #       echo 1 > /sys/class/gpio/gpio17/value
31 #fi
32