Преглед изворни кода

fix wrong numbering of interfaces in wireless detection

SVN-Revision: 19525
Jo-Philipp Wich пре 16 година
родитељ
комит
76df66cda8
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      package/broadcom-wl/files/lib/wifi/broadcom.sh

+ 2 - 2
package/broadcom-wl/files/lib/wifi/broadcom.sh

@@ -335,9 +335,9 @@ EOF
 
 
 
 
 detect_broadcom() {
 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
 		config_get type wl${i} type
 		[ "$type" = broadcom ] && continue
 		[ "$type" = broadcom ] && continue
 		cat <<EOF
 		cat <<EOF