From 2c09564d762b692d970a531cca58eb52ba3807e7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 14 Aug 2008 14:51:06 +0000 Subject: modules/admin-core: Added several cross-references to relevant configuration pages --- applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'applications/luci-olsr') diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index c57d3c8cb..824b2b513 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -11,6 +11,7 @@ You may obtain a copy of the License at $Id$ ]]-- +require("luci.tools.webadmin") require("luci.fs") m = Map("olsr", "OLSR") @@ -85,13 +86,7 @@ i.addremove = true i.dynamic = true network = i:option(ListValue, "Interface", translate("network")) -network:value("") -luci.model.uci.foreach("network", "interface", - function (section) - if section[".name"] ~= "loopback" then - network:value(section[".name"]) - end - end) +luci.tools.webadmin.cbi_add_networks(network) i:option(Value, "Ip4Broadcast") i:option(Value, "HelloInterval") -- cgit v1.2.3