diff options
Diffstat (limited to 'scripts/bt-dev-end.sh')
-rwxr-xr-x | scripts/bt-dev-end.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/bt-dev-end.sh b/scripts/bt-dev-end.sh new file mode 100755 index 0000000..ef4731e --- /dev/null +++ b/scripts/bt-dev-end.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +# +# Script for stopping Broadcom UART Bluetooth stack +# + +# Device down +/usr/sbin/hciconfig hci0 down + +# OMAP4 +REVISION_NUM=`grep Revision /proc/cpuinfo | awk "{print \\$3}"` +if [ $REVISION_NUM == "0006" ]; then + rmmod bt_drv.ko + rmmod st_drv.ko + sleep 1 + killall uim_rfkill + exit 0 +fi + +killall hciattach + +# Turn off Bluetooth Chip +rfkill block bluetooth + +#if [ -e /sys/class/gpio/gpio17/value ] +#then +# # Reset BT chip +# echo 0 > /sys/class/gpio/gpio17/value +# sleep 0.1 +# echo 1 > /sys/class/gpio/gpio17/value +#fi + |