2012-09-18 09:35:26 +02:00
|
|
|
module("luci.controller.freifunk.index", package.seeall)
|
2012-05-22 19:28:02 +02:00
|
|
|
|
2012-08-08 19:27:43 +02:00
|
|
|
|
2012-05-22 19:28:02 +02:00
|
|
|
function index()
|
2012-08-08 19:27:43 +02:00
|
|
|
local uci_state = luci.model.uci.cursor_state()
|
2012-05-22 19:28:02 +02:00
|
|
|
|
2012-09-18 09:35:26 +02:00
|
|
|
if uci_state:get_first("config_mode", "wizard", "running", "0") == "1" then
|
2012-05-23 16:47:27 +02:00
|
|
|
local root = node()
|
2012-09-18 10:50:35 +02:00
|
|
|
root.target = alias("wizard", "welcome")
|
|
|
|
root.index = true
|
2012-05-23 16:47:27 +02:00
|
|
|
end
|
2012-05-22 19:28:02 +02:00
|
|
|
end
|
2012-05-23 16:47:27 +02:00
|
|
|
|