summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-olsr')
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua9
1 files changed, 2 insertions, 7 deletions
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")