From a7b1ebe096b91251a0f441e7cdb85434d61f6a60 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 15 Oct 2009 16:20:29 +0000 Subject: libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the ifname --- libs/iwinfo/src/dummy.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/iwinfo/src/dummy.lua') diff --git a/libs/iwinfo/src/dummy.lua b/libs/iwinfo/src/dummy.lua index 45bf047fa5..75fb4baf2e 100644 --- a/libs/iwinfo/src/dummy.lua +++ b/libs/iwinfo/src/dummy.lua @@ -1,7 +1,9 @@ module "iwinfo" -function type() - return "dummy" +function type(x) + if x:match("^wlan%d") or x:match("^wl%d") or x:match("^ath%d") then + return "dummy" + end end dummy = {} -- cgit v1.2.3