diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-30 15:07:06 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-30 15:07:06 +0000 |
commit | abf0c329c5f3766c711f9f81f2bba913a3e3f2bd (patch) | |
tree | 1c8ad95c2c838b541950f4dedc0bfb5f8755f520 /applications | |
parent | 39e418ab4a0666dea38186682e2ee1e7aaaa56c5 (diff) |
applications/luci-ffwizard-leipzig: also unload dyn_gw_plain if share internet is not checked
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua index af67881d0..b81e77d9d 100644 --- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua +++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua @@ -296,11 +296,14 @@ end function share.write(self, section, value) 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 uci:section("firewall", "forwarding", nil, {src="freifunk", dest="wan"}) + uci:section("olsrd", "LoadPlugin", nil, {library="olsrd_dyn_gw_plain.so.0.4"}) end uci:save("firewall") + uci:save("olsrd") end |