Fix usage of wrong state file for "running" flag

This commit is contained in:
Matthias Schiffer 2012-09-18 10:26:58 +02:00
parent 39514836fd
commit 37bfc70a75
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ module("luci.controller.freifunk.wizard", package.seeall)
function index()
local uci_state = luci.model.uci.cursor_state()
if uci_state:get_first("freifunk", "wizard", "running", "0") == "1" then
if uci_state:get_first("config_mode", "wizard", "running", "0") == "1" then
entry({"wizard", "welcome"}, template("freifunk-wizard/welcome"), "Willkommen", 10).dependent=false
entry({"wizard", "password"}, form("freifunk-wizard/password"), "Passwort", 20).dependent=false
entry({"wizard", "hostname"}, form("freifunk-wizard/hostname"), "Hostname", 30).dependent=false