Finally to production
This commit is contained in:
parent
3d79575f03
commit
ec037a2e00
5 changed files with 38 additions and 25 deletions
|
@ -1,4 +1,9 @@
|
|||
|
||||
local function handleAferCommit()
|
||||
luci.sys.init.stop("cronosagent")
|
||||
luci.sys.init.start("cronosagent")
|
||||
end
|
||||
|
||||
local map = Map("cronosagent", "CronosAgent")
|
||||
local section = map:section(TypedSection, "cronosagent", "Configuration")
|
||||
|
||||
|
@ -7,11 +12,13 @@ local repeater = section:option(Value, "repeaterAddress", "Repeater Address", "A
|
|||
local server = section:option(Value, "serverAddress", "Server address", "Address of BrandMeister DMR Server")
|
||||
local password = section:option(Value, "serverPassword", "Password", "Password to login to the server" )
|
||||
|
||||
number.datatype = "range(1,16777215)"
|
||||
repeater.datatype = "ip4addr"
|
||||
number.datatype = "range(1,16777215)"
|
||||
repeater.datatype = "ip4addr"
|
||||
|
||||
server.datatype = "host"
|
||||
password.datatype = "string"
|
||||
password.password = true
|
||||
server.datatype = "host"
|
||||
password.datatype = "string"
|
||||
password.password = true
|
||||
|
||||
map.on_after_commit = handleAferCommit
|
||||
|
||||
return map
|
Loading…
Add table
Add a link
Reference in a new issue