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