From 379ec16b1e41893aec9a9bbeadf3199e6b496c1d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 14 Sep 2008 23:21:14 +0000 Subject: [PATCH] * luci-0.8: backport olsrd config and layout fixes --- applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 2 ++ contrib/package/olsrd-luci/files/etc/config/olsrd | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index addb64539d..0f8bc42369 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -121,6 +121,8 @@ adc.optional = true ipc = m:section(TypedSection, "IpcConnect") +ipc.anonymous = true + conns = ipc:option(Value, "MaxConnections") conns.isInteger = true diff --git a/contrib/package/olsrd-luci/files/etc/config/olsrd b/contrib/package/olsrd-luci/files/etc/config/olsrd index 2e0e4e6a1b..117a93e4b5 100644 --- a/contrib/package/olsrd-luci/files/etc/config/olsrd +++ b/contrib/package/olsrd-luci/files/etc/config/olsrd @@ -10,13 +10,17 @@ config 'Interface' config 'LoadPlugin' option 'library' 'olsrd_dyn_gw.so.0.4' option 'Ping' '141.1.1.1' -# option 'HNA' '192.168.80.0 255.255.255.0' option 'Interval' '60' config 'LoadPlugin' option 'library' 'olsrd_nameservice.so.0.3' - option 'name' 'luci-node.olsr' + option 'name' 'luci-node' + option 'suffix' '.olsr' + option 'hosts_file' '/var/etc/hosts.olsr' config 'LoadPlugin' option 'library' 'olsrd_txtinfo.so.0.1' option 'accept' '127.0.0.1' + +config 'IpcConnect' + option 'MaxConnections' '0' -- 2.30.2