Add support luci

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-12-21 16:25:19 +08:00
parent b7f9a7861b
commit 24478bd34e
2 changed files with 30 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
module("luci.controller.rtty", package.seeall)
function index()
entry({"admin", "system", "rtty"}, cbi("rtty"), _("Rtty"), 90)
end
+25
View File
@@ -0,0 +1,25 @@
local m, s, o
m = Map("rtty", translate("Rtty"))
m:chain("luci")
s = m:section(TypedSection, "rtty")
s.anonymous = true
s.addremove = true
o = s:option(Value, "id", translate("ID"))
o = s:option(Value, "host", translate("Server"))
o = s:option(Value, "port", translate("Port"))
o.datatype = "port"
o = s:option(Flag, "ssl", translate("SSL"))
o = s:option(Value, "description", translate("Description"))
return m