* luci/app-olsr: further fixes in olsr plugins config
This commit is contained in:
parent
61fe05ef43
commit
b69589fba3
1 changed files with 3 additions and 1 deletions
|
@ -97,7 +97,7 @@ local knownPlParams = {
|
||||||
{ DynamicList, "Net", "0.0.0.0/0", IpMask2Cidr, Cidr2IpMask }
|
{ 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, "name", "my-name.mesh" },
|
||||||
{ DynamicList, "hosts", "1.2.3.4 name-for-other-interface.mesh" },
|
{ DynamicList, "hosts", "1.2.3.4 name-for-other-interface.mesh" },
|
||||||
{ Value, "suffix", ".olsr" },
|
{ Value, "suffix", ".olsr" },
|
||||||
|
@ -162,6 +162,7 @@ for plugin, options in pairs(knownPlParams) do
|
||||||
bool.enabled = "true"
|
bool.enabled = "true"
|
||||||
bool.disabled = "false"
|
bool.disabled = "false"
|
||||||
end
|
end
|
||||||
|
bool.optional = true
|
||||||
bool.default = default
|
bool.default = default
|
||||||
bool:depends({ library = plugin })
|
bool:depends({ library = plugin })
|
||||||
else
|
else
|
||||||
|
@ -184,6 +185,7 @@ for plugin, options in pairs(knownPlParams) do
|
||||||
if otype == DynamicList then
|
if otype == DynamicList then
|
||||||
field:value( default )
|
field:value( default )
|
||||||
end
|
end
|
||||||
|
field.optional = true
|
||||||
field.default = default
|
field.default = default
|
||||||
field:depends({ library = plugin })
|
field:depends({ library = plugin })
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue