modules/admin-full: hide special interfaces like imq0, mon.wlan0 etc.
This commit is contained in:
parent
ea8465e98b
commit
9c6efa1554
1 changed files with 3 additions and 1 deletions
|
@ -13,10 +13,12 @@ $Id$
|
|||
-%>
|
||||
|
||||
<%-
|
||||
local ntm = require "luci.model.network".init()
|
||||
|
||||
local dev
|
||||
local devices = { }
|
||||
for _, dev in luci.util.kspairs(luci.sys.net.devices()) do
|
||||
if dev ~= "lo" then
|
||||
if dev ~= "lo" and not ntm:ignore_interface(dev) then
|
||||
devices[#devices+1] = dev
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue