Merge r4186
This commit is contained in:
parent
be29cd90da
commit
e7234befc3
1 changed files with 3 additions and 0 deletions
|
@ -296,11 +296,14 @@ end
|
||||||
|
|
||||||
function share.write(self, section, value)
|
function share.write(self, section, value)
|
||||||
uci:delete_all("firewall", "forwarding", {src="freifunk", dest="wan"})
|
uci:delete_all("firewall", "forwarding", {src="freifunk", dest="wan"})
|
||||||
|
uci:delete_all("olsrd", "LoadPlugin", {library="olsrd_dyn_gw_plain.so.0.4"})
|
||||||
|
|
||||||
if value == "1" then
|
if value == "1" then
|
||||||
uci:section("firewall", "forwarding", nil, {src="freifunk", dest="wan"})
|
uci:section("firewall", "forwarding", nil, {src="freifunk", dest="wan"})
|
||||||
|
uci:section("olsrd", "LoadPlugin", nil, {library="olsrd_dyn_gw_plain.so.0.4"})
|
||||||
end
|
end
|
||||||
uci:save("firewall")
|
uci:save("firewall")
|
||||||
|
uci:save("olsrd")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue