* luci/app/ffwizard: sync olsr configuration
This commit is contained in:
parent
b3cab35609
commit
95c444c539
2 changed files with 56 additions and 55 deletions
|
@ -201,9 +201,10 @@ function olsr.write(self, section, value)
|
||||||
|
|
||||||
-- Write new interface
|
-- Write new interface
|
||||||
local olsrbase = _strip_internals(uci:get_all("freifunk", "olsr_interface"))
|
local olsrbase = _strip_internals(uci:get_all("freifunk", "olsr_interface"))
|
||||||
olsrbase.Interface = device
|
olsrbase.interface = device
|
||||||
uci:section("olsr", "Interface", nil, olsrbase)
|
olsrbase.ignore = "0"
|
||||||
uci:save("olsr")
|
uci:section("olsrd", "Interface", nil, olsrbase)
|
||||||
|
uci:save("olsrd")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ function network_remove_interface(iface)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Remove OLSR sections
|
-- Remove OLSR sections
|
||||||
cursor:delete_all("olsr", "Interface", {Interface=iface})
|
cursor:delete_all("olsrd", "Interface", {Interface=iface})
|
||||||
|
|
||||||
-- Remove Splash sections
|
-- Remove Splash sections
|
||||||
cursor:delete_all("luci-splash", "iface", {network=iface})
|
cursor:delete_all("luci-splash", "iface", {network=iface})
|
||||||
|
|
Loading…
Reference in a new issue