From 9c6efa15544b5523d69f06f6b798c970eeb2932d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 28 Nov 2010 06:50:38 +0000 Subject: modules/admin-full: hide special interfaces like imq0, mon.wlan0 etc. --- modules/admin-full/luasrc/view/admin_status/bandwidth.htm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/admin-full/luasrc/view/admin_status/bandwidth.htm b/modules/admin-full/luasrc/view/admin_status/bandwidth.htm index b8e031f6a..25701fb41 100644 --- a/modules/admin-full/luasrc/view/admin_status/bandwidth.htm +++ b/modules/admin-full/luasrc/view/admin_status/bandwidth.htm @@ -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 -- cgit v1.2.3