2012-05-22 19:28:02 +02:00
|
|
|
module("luci.controller.ffhl.index", package.seeall)
|
|
|
|
|
|
|
|
function index()
|
2012-05-23 16:47:27 +02:00
|
|
|
local uci = luci.model.uci.cursor()
|
2012-05-22 19:28:02 +02:00
|
|
|
|
2012-05-23 16:47:27 +02:00
|
|
|
if uci:get_first("ffhl", "wizard", "enabled") == "1" then
|
|
|
|
local root = node()
|
|
|
|
if not root.target then
|
|
|
|
root.target = alias("wizard", "welcome")
|
|
|
|
root.index = true
|
|
|
|
end
|
|
|
|
end
|
2012-05-22 19:28:02 +02:00
|
|
|
end
|
2012-05-23 16:47:27 +02:00
|
|
|
|