diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-17 19:44:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-17 19:44:38 +0200 |
commit | 0226ba98052dc85d6a3c55a037ad96fe5d5b9908 (patch) | |
tree | 46f5ae33faf37b776dff9d6c9c1e5f5e5e20d7c9 /applications/luci-app-ttyd/luasrc/controller/ttyd.lua | |
parent | b3965b9f53b945e1e5488b69955b0c354cb82d3f (diff) | |
parent | 1c9a06ea2b8829bee9d4149f118bd8c0d863c081 (diff) |
Merge pull request #3202 from ysc3839/ttyd
[RFC] luci-app-ttyd: add new package
Diffstat (limited to 'applications/luci-app-ttyd/luasrc/controller/ttyd.lua')
-rw-r--r-- | applications/luci-app-ttyd/luasrc/controller/ttyd.lua | 13 |
1 files changed, 13 insertions, 0 deletions
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 |