diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-15 21:23:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-15 21:23:03 +0000 |
commit | bf80f902c57ea1a6487f51acfec9fb669cbbb417 (patch) | |
tree | 850e4e535187d2b6e60b8df8d07e1b998965bdcc | |
parent | 7ea3e1a5e6d3a181b7b9086b71d3b5d85c7a94bb (diff) |
* luci/app-ffwizard: fix deletion of olsrd interface
-rw-r--r-- | applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua index 0e1ef2863..7da7655d5 100644 --- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua +++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua @@ -162,7 +162,7 @@ function main.write(self, section, value) tools.wifi_delete_ifaces(device) tools.network_remove_interface(device) tools.firewall_zone_remove_interface("freifunk", device) - + -- Tune community settings if community then uci:tset("freifunk", "community", uci:get_all("freifunk", community)) @@ -225,12 +225,12 @@ function olsr.write(self, section, value) local device = dev:formvalue(section) - + local community = net:formvalue(section) local external = community and uci:get("freifunk", community, "external") or "" -- Delete old interface - uci:delete_all("freifunk", "Interface", {interface=device}) + uci:delete_all("olsrd", "Interface", {interface=device}) -- Write new interface local olsrbase = uci:get_all("freifunk", "olsr_interface") @@ -297,7 +297,7 @@ function client.write(self, section, value) uci:section("dhcp", "dhcp", device .. "dhcp", dhcpbase) uci:save("dhcp") - + uci:delete_all("firewall", "rule", { src="freifunk", proto="udp", @@ -311,7 +311,7 @@ function client.write(self, section, value) dest_port="67", target="ACCEPT" }) - + -- Delete old splash |