4
Fork 0

Added prototype of LuCI interface

This commit is contained in:
R3ABM Artem 2016-08-01 16:48:45 +04:00
parent 609a2d6153
commit 773282a5c5
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,11 @@
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