mt_wifi lua detect wanif name not null
This commit is contained in:
parent
ab3537894a
commit
d10b88dd35
@ -26,7 +26,7 @@ end
|
||||
function add_vif_into_lan(vif)
|
||||
local mtkwifi = require("mtkwifi")
|
||||
local wanif = mtkwifi.__trim(mtkwifi.read_pipe("uci get network.wan.ifname"))
|
||||
if (string.match(vif, wanif)) then
|
||||
if ('' ~= wanif and string.match(vif, wanif)) then
|
||||
return
|
||||
end
|
||||
local brvifs = mtkwifi.__trim(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user