From 29e91c2d83f6239dae938a621af8adfe81bbd907 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 14 Sep 2008 23:17:10 +0000 Subject: [PATCH] * luci/app-olsr: fix layout of IpcConnect section * luci/contrib/olsr: fix default config --- 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 addb64539..0f8bc4236 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 3cbfa627b..4ce5bdac1 100644 --- a/contrib/package/olsrd-luci/files/etc/config/olsrd +++ b/contrib/package/olsrd-luci/files/etc/config/olsrd @@ -10,14 +10,18 @@ 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' option 'latlon_file' '/dev/null' config 'LoadPlugin' option 'library' 'olsrd_txtinfo.so.0.1' option 'accept' '127.0.0.1' + +config 'IpcConnect' + option 'MaxConnections' '0' -- 2.25.1