diff options
author | Steven Barth <steven@midlink.org> | 2008-04-27 21:04:58 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-27 21:04:58 +0000 |
commit | a48593c14516ef8a953eed9c36f2d57d5cc9fa00 (patch) | |
tree | 11c1b86e3b2439a06ec433e3fda05eb7ce555cb7 /module/admin-core | |
parent | 2724aa14f35dd5ff44dd96b8bdb17965193d700c (diff) |
* Fixed Freifunk wizard
Diffstat (limited to 'module/admin-core')
-rw-r--r-- | module/admin-core/src/controller/admin/index.lua | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/module/admin-core/src/controller/admin/index.lua b/module/admin-core/src/controller/admin/index.lua index 685478eddb..ba582cf5c5 100644 --- a/module/admin-core/src/controller/admin/index.lua +++ b/module/admin-core/src/controller/admin/index.lua @@ -53,14 +53,26 @@ function configure_freifunk() uci:set("network", "ffdhcp", "proto", "static") uci:set("network", "ffdhcp", "ifname", "br-ff:dhcp") uci:set("network", "ffdhcp", "ipaddr", dhcpip) - uci:set("network", "ffdhcp", "netmask", uci:get("freifunk", "community", "dhcpmask")) + uci:set("network", "ffdhcp", "netmask", uci:get("freifunk", "community", "dhcpmask")) + + local splash = uci:show("luci_splash") + if splash then + for k, v in pairs(splash.luci_splash) do + if v[".type"] == "iface" then + uci:del("luci_splash", k) + end + end + + local sk = uci:add("luci_splash", "iface") + uci:set("luci_splash", sk, "network", "ffdhcp") + end end -- Configure OLSR if ffluci.http.formvalue("olsr") and uci:show("olsr") then for k, v in pairs(uci:show("olsr").olsr) do if v[".type"] == "Interface" or v[".type"] == "LoadPlugin" then - uci:del("olsr", "k") + uci:del("olsr", k) end end |