applications/luci-ffwizard-leipzig: also unload dyn_gw_plain if share internet is...
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 30 Jan 2009 15:07:06 +0000 (15:07 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 30 Jan 2009 15:07:06 +0000 (15:07 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index af67881d06fc5286add10e8706b1a94dc99c7694..b81e77d9d730c80a5d0fcfdc9bec7fd8cb1ea2fc 100644 (file)
@@ -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