modules/admin-full: hide special interfaces like imq0, mon.wlan0 etc.

This commit is contained in:
Jo-Philipp Wich 2010-11-28 06:50:38 +00:00
parent ea8465e98b
commit 9c6efa1554

View file

@ -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