From a7b1ebe096b91251a0f441e7cdb85434d61f6a60 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 15 Oct 2009 16:20:29 +0000 Subject: [PATCH] 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(-) diff --git a/libs/iwinfo/src/dummy.lua b/libs/iwinfo/src/dummy.lua index 45bf047fa..75fb4baf2 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 = {} -- 2.11.0