package/olsrd-luci: add exception for Ip6AddrType option
applications/luci-olsr: add support for Ip6AddrType option
This commit is contained in:
parent
0d64b29b89
commit
ca6a85fd83
2 changed files with 8 additions and 1 deletions
|
@ -114,6 +114,13 @@ i:option(Value, "MidValidityTime").optional = true
|
|||
i:option(Value, "HnaInterval").optional = true
|
||||
i:option(Value, "HnaValidityTime").optional = true
|
||||
|
||||
ip6t = i:option(ListValue, "Ip6AddrType")
|
||||
ip6t:value("auto")
|
||||
ip6t:value("site-local")
|
||||
ip6t:value("unique-local")
|
||||
ip6t:value("global")
|
||||
ip6t.optional = true
|
||||
|
||||
adc = i:option(Flag, "AutoDetectChanges")
|
||||
adc.enabled = "yes"
|
||||
adc.disabled = "no"
|
||||
|
|
|
@ -124,7 +124,7 @@ olsrd_write_option() {
|
|||
fi
|
||||
|
||||
if [ "$value" != "${value%%[G-Zg-z_-]*}" ]; then
|
||||
if [ "$value" != "yes" -a "$value" != "no" ]; then
|
||||
if [ "$option" != "Ip6AddrType" -a "$value" != "yes" -a "$value" != "no" ]; then
|
||||
value="\"$value\""
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue