summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-28 06:50:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-28 06:50:38 +0000
commit9c6efa15544b5523d69f06f6b798c970eeb2932d (patch)
treeefd0d956c1e61c47f340cb4129d187740e7a967a /modules/admin-full/luasrc/view
parentea8465e98b52a35661b45070b2b9b7850801e69e (diff)
modules/admin-full: hide special interfaces like imq0, mon.wlan0 etc.
Diffstat (limited to 'modules/admin-full/luasrc/view')
-rw-r--r--modules/admin-full/luasrc/view/admin_status/bandwidth.htm4
1 files changed, 3 insertions, 1 deletions
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