From: Jo-Philipp Wich Date: Thu, 4 Feb 2010 17:11:56 +0000 (+0000) Subject: fix wrong numbering of interfaces in wireless detection X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=76df66cda8de527e3497a078a922718e2a317cf7;p=librecmc%2Flibrecmc.git fix wrong numbering of interfaces in wireless detection SVN-Revision: 19525 --- diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index 75f8b085bb..c444ce8fd5 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -335,9 +335,9 @@ EOF detect_broadcom() { - local i=0 + local i=-1 - while [ -f /proc/net/wl$((i++)) ]; do + while [ -f /proc/net/wl$((++i)) ]; do config_get type wl${i} type [ "$type" = broadcom ] && continue cat <