12 lines
529 B
Lua
12 lines
529 B
Lua
module("cronosagent", package.seeall)
|
|
|
|
function index()
|
|
entry({ "admin", "cronosagent" }, alias("admin", "cronosagent", "configure", "restart"), "CronosAgent")
|
|
entry({ "admin", "cronosagent", "configure" }, cbi("cronosagent"), "Configure", 10)
|
|
entry({ "admin", "cronosagent", "restart" }, call("restartCronosAgent"), "Restart", 20)
|
|
end
|
|
|
|
function restartCronosAgent()
|
|
luci.sys.init.stop("cronosagent")
|
|
luci.sys.init.start("cronosagent")
|
|
end
|