diff options
author | Steven Barth <steven@midlink.org> | 2008-08-07 19:03:25 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-07 19:03:25 +0000 |
commit | e72a526984982f6fa2b6f2ed5ce01523094bfe43 (patch) | |
tree | 2f34fbbe1e21e58d9292fd13305c834cb0613b17 /modules/admin-full/luasrc/controller | |
parent | d79794c1194c65861253e20681fabe103cc85740 (diff) |
libs/cbi: Added magic ;-)
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 871263334a..3fb45f804d 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -15,6 +15,7 @@ module("luci.controller.admin.network", package.seeall) function index() require("luci.i18n") + require("luci.model.uci") local i18n = luci.i18n.translate local page = node("admin", "network") @@ -31,7 +32,18 @@ function index() page.target = cbi("admin_network/ifaces") page.title = i18n("interfaces", "Schnittstellen") page.order = 20 - + page.leaf = true + + luci.model.uci.foreach("network", "interface", + function (section) + local ifc = section[".name"] + if ifc ~= "loopback" then + entry({"admin", "network", "ifaces", ifc}, page.target, ifc) + end + end + ) + + local page = node("admin", "network", "dhcp") page.target = cbi("admin_network/dhcp") page.title = "DHCP" |