* Temporarily disabled fastindex-support due to a bug where controllers containing "require"-calls are not indexed correctly

This commit is contained in:
Steven Barth 2008-05-29 19:39:08 +00:00
parent 3f5f89451e
commit d5c47776a5
2 changed files with 13 additions and 45 deletions

View file

@ -154,11 +154,13 @@ function createindex()
local path = luci.sys.libpath() .. "/controller/" local path = luci.sys.libpath() .. "/controller/"
local suff = ".lua" local suff = ".lua"
if pcall(require, "fastindex") then --[[if pcall(require, "fastindex") then
createindex_fastindex(path, suff) createindex_fastindex(path, suff)
else else
createindex_plain(path, suff) createindex_plain(path, suff)
end end]]--
createindex_plain(path, suff)
built_index = true built_index = true
end end

View file

@ -8,49 +8,15 @@ require("luci.model.ipkg")
require("luci.model.uci") require("luci.model.uci")
function index() function index()
local page = node("admin", "system") entry({"admin", "system"}, template("admin_system/index"), "System", 30)
page.target = template("admin_system/index") entry({"admin", "system", "packages"}, call("action_packages"), "Paketverwaltung", 10)
page.title = "System" entry({"admin", "system", "packages", "ipkg"}, call("action_ipkg"), "IPKG-Konfiguration")
page.order = 30 entry({"admin", "system", "passwd"}, call("action_passwd"), "Passwort ändern", 20)
entry({"admin", "system", "sshkeys"}, call("action_sshkeys"), "SSH-Schlüssel", 30)
local page = node("admin", "system", "packages") entry({"admin", "system", "hostname"}, cbi("admin_system/hostname"), "Hostname", 40)
page.target = call("action_packages") entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), "Einhängepunkte", 50)
page.title = "Paketverwaltung" entry({"admin", "system", "upgrade"}, call("action_upgrade"), "Firmwareupgrade", 60)
page.order = 10 entry({"admin", "system", "reboot"}, call("action_reboot"), "Neu starten", 70)
local page = node("admin", "system", "packages", "ipkg")
page.target = call("action_ipkg")
page.title = "IPKG-Konfiguration"
local page = node("admin", "system", "passwd")
page.target = call("action_passwd")
page.title = "Passwort ändern"
page.order = 20
local page = node("admin", "system", "sshkeys")
page.target = call("action_sshkeys")
page.title = "SSH-Schlüssel"
page.order = 30
local page = node("admin", "system", "hostname")
page.target = cbi("admin_system/hostname")
page.title = "Hostname"
page.order = 40
local page = node("admin", "system", "fstab")
page.target = cbi("admin_system/fstab")
page.title = "Einhängepunkte"
page.order = 50
local page = node("admin", "system", "upgrade")
page.target = call("action_upgrade")
page.title = "Firmwareupgrade"
page.order = 60
local page = node("admin", "system", "reboot")
page.target = call("action_reboot")
page.title = "Neu starten"
page.order = 70
end end
function action_editor() function action_editor()