summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-13 05:23:30 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-13 05:23:30 +0000
commitb69589fba337ac9c362e02d58c354b2e218900c7 (patch)
tree6c1b1903527105f390551927c83ca50547f77b1a
parent61fe05ef43b42887ec27dc2f07ef0c73ca91426b (diff)
* luci/app-olsr: further fixes in olsr plugins config
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
index 236276d47..63e12e08d 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
@@ -97,7 +97,7 @@ local knownPlParams = {
{ DynamicList, "Net", "0.0.0.0/0", IpMask2Cidr, Cidr2IpMask }
},
- ["olsrd_nameservice.so.0.2"] = {
+ ["olsrd_nameservice.so.0.3"] = {
{ DynamicList, "name", "my-name.mesh" },
{ DynamicList, "hosts", "1.2.3.4 name-for-other-interface.mesh" },
{ Value, "suffix", ".olsr" },
@@ -162,6 +162,7 @@ for plugin, options in pairs(knownPlParams) do
bool.enabled = "true"
bool.disabled = "false"
end
+ bool.optional = true
bool.default = default
bool:depends({ library = plugin })
else
@@ -184,6 +185,7 @@ for plugin, options in pairs(knownPlParams) do
if otype == DynamicList then
field:value( default )
end
+ field.optional = true
field.default = default
field:depends({ library = plugin })
end