* 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
|
||||
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
|
||||
|
||||
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue