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