From 1c9a06ea2b8829bee9d4149f118bd8c0d863c081 Mon Sep 17 00:00:00 2001 From: Richard Yu Date: Thu, 17 Oct 2019 16:47:14 +0800 Subject: luci-app-ttyd: add new package Signed-off-by: Richard Yu --- applications/luci-app-ttyd/luasrc/controller/ttyd.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 applications/luci-app-ttyd/luasrc/controller/ttyd.lua (limited to 'applications/luci-app-ttyd/luasrc/controller') diff --git a/applications/luci-app-ttyd/luasrc/controller/ttyd.lua b/applications/luci-app-ttyd/luasrc/controller/ttyd.lua new file mode 100644 index 0000000000..5a7344d846 --- /dev/null +++ b/applications/luci-app-ttyd/luasrc/controller/ttyd.lua @@ -0,0 +1,13 @@ +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.ttyd", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/ttyd") then + return + end + + entry({"admin", "services", "ttyd"}, firstchild(), _("ttyd")) + entry({"admin", "services", "ttyd", "ttyd"}, view("ttyd/term"), _("Terminal"), 1) + entry({"admin", "services", "ttyd", "config"}, view("ttyd/config"), _("Config"), 2) +end -- cgit v1.2.3