summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller/admin/network.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-18 13:20:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-18 13:20:43 +0000
commit9c97cdb7b6edcc62d29a72ca64cd682503e693f6 (patch)
treebc679e53137a5e00bad8c6480417ee9b5acc807a /modules/admin-full/luasrc/controller/admin/network.lua
parent0efea1babc41a888c307af6d79cfd1447b32dde6 (diff)
modules/admin-full: better handle interfaces with unsupported protocols
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin/network.lua')
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index 9d9aab4a2c..1e6892e16e 100644
--- a/modules/admin-full/luasrc/controller/admin/network.lua
+++ b/modules/admin-full/luasrc/controller/admin/network.lua
@@ -269,6 +269,12 @@ function iface_status()
end
rv[#rv+1] = data
+ else
+ rv[#rv+1] = {
+ id = iface,
+ name = iface,
+ type = "ethernet"
+ }
end
end