summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-14 23:17:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-14 23:17:10 +0000
commit29e91c2d83f6239dae938a621af8adfe81bbd907 (patch)
tree35adfc949c6dde70157be5d640e0eaaa7824510d
parent74c51811c824a96e16e009bf24ffc55ff6ed5357 (diff)
* luci/app-olsr: fix layout of IpcConnect section
* luci/contrib/olsr: fix default config
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua2
-rw-r--r--contrib/package/olsrd-luci/files/etc/config/olsrd8
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'