Update brcm40183-patch

This commit is contained in:
Igor Pečovnik
2014-10-16 22:40:55 +02:00
parent a63b9aef83
commit 822f251d6e

View File

@@ -22,11 +22,11 @@ fi
do_start () {
if [ ! -z $(/usr/sbin/hciconfig | /bin/grep UART | /usr/bin/cut -d: -f1) ]
if [ ! -z $(hciconfig | /bin/grep UART | /usr/bin/cut -d: -f1) ]
then
log_action_begin_msg "brcm40183 device allready initialized"
log_action_end_msg 0
/usr/bin/hcitool dev
hcitool dev
else
# Select MAC address
if [ -z "$MAC_ADDR" ]; then
@@ -51,7 +51,7 @@ else
case "$?" in
0) log_action_end_msg 0
# Enable interfaces
/usr/sbin/hciattach /dev/$PORT any
hciattach /dev/$PORT any
;;
*) log_action_end_msg 1
/bin/echo "Check /tmp/brcm40183.firmware for messages."
@@ -72,7 +72,7 @@ case "$1" in
# No-op
;;
status)
/usr/bin/hcitool dev
hcitool dev
;;
*)
echo "Usage: brcm40183-patch.sh [start|stop|status]" >&2