4
Fork 0
CronosAgent/LuCI/app-cronosagent/luasrc/controller/cronosagent.lua
2016-08-01 17:24:49 +04:00

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