diff --git a/LuCI/controller/CronosAgent/module.lua b/LuCI/controller/CronosAgent/module.lua new file mode 100644 index 0000000..6a66e47 --- /dev/null +++ b/LuCI/controller/CronosAgent/module.lua @@ -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 diff --git a/LuCI/model/cbi/CronosAgent/configure.lua b/LuCI/model/cbi/CronosAgent/configure.lua new file mode 100644 index 0000000..5a70559 --- /dev/null +++ b/LuCI/model/cbi/CronosAgent/configure.lua @@ -0,0 +1,8 @@ + +local map = Map("cronosagent", "CronosAgent") +local section = map:section(TypedSection, "configuration") + +section:option(Value, "number", "Repeater ID", "DMR ID assigned to your repeater") +section:option(Value, "repeaterAddress", "Repeater Address", "Address of your KAIROS repeater") +section:option(Value, "serverAddress", "Server address", "Address of BrandMeister DMR Server") +section:option(Value, "serverPassword", "Password", "Password to login")