mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[brcm-2.4] fix wrong numbering of interfaces in wireless detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19525 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3462bb923d
commit
82f4caadef
@ -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 <<EOF
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user