mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Update brcm40183-patch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user