blob: ef4731eb65f4afbc338c4b8ff09dcc2086735944 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|