* luci/app/ffwizard: sync olsr configuration

This commit is contained in:
Jo-Philipp Wich 2008-09-14 00:34:39 +00:00
parent b3cab35609
commit 95c444c539
2 changed files with 56 additions and 55 deletions

View file

@ -201,9 +201,10 @@ function olsr.write(self, section, value)
-- Write new interface
local olsrbase = _strip_internals(uci:get_all("freifunk", "olsr_interface"))
olsrbase.Interface = device
uci:section("olsr", "Interface", nil, olsrbase)
uci:save("olsr")
olsrbase.interface = device
olsrbase.ignore = "0"
uci:section("olsrd", "Interface", nil, olsrbase)
uci:save("olsrd")
end

View file

@ -56,7 +56,7 @@ function network_remove_interface(iface)
end)
-- Remove OLSR sections
cursor:delete_all("olsr", "Interface", {Interface=iface})
cursor:delete_all("olsrd", "Interface", {Interface=iface})
-- Remove Splash sections
cursor:delete_all("luci-splash", "iface", {network=iface})