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))
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")
uci:section("dhcp", "dhcp", device .. "dhcp", dhcpbase)
uci:save("dhcp")
-
+
uci:delete_all("firewall", "rule", {
src="freifunk",
proto="udp",
dest_port="67",
target="ACCEPT"
})
-
+
-- Delete old splash