libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the ifname

This commit is contained in:
Jo-Philipp Wich 2009-10-15 16:20:29 +00:00
parent e2147feb63
commit a7b1ebe096

View file

@ -1,7 +1,9 @@
module "iwinfo" module "iwinfo"
function type() function type(x)
return "dummy" if x:match("^wlan%d") or x:match("^wl%d") or x:match("^ath%d") then
return "dummy"
end
end end
dummy = {} dummy = {}