modules/admin-full: hide special interfaces like imq0, mon.wlan0 etc.
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 28 Nov 2010 06:50:38 +0000 (06:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 28 Nov 2010 06:50:38 +0000 (06:50 +0000)
modules/admin-full/luasrc/view/admin_status/bandwidth.htm

index b8e031f6a4513fcb0a7b1218137efa71906eb9ce..25701fb417534fc809a91b67378f30347da88f27 100644 (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