2
0

ttyd.lua 421 B

12345678910111213
  1. -- Licensed to the public under the Apache License 2.0.
  2. module("luci.controller.ttyd", package.seeall)
  3. function index()
  4. if not nixio.fs.access("/etc/config/ttyd") then
  5. return
  6. end
  7. entry({"admin", "services", "ttyd"}, firstchild(), _("ttyd"))
  8. entry({"admin", "services", "ttyd", "ttyd"}, view("ttyd/term"), _("Terminal"), 1)
  9. entry({"admin", "services", "ttyd", "config"}, view("ttyd/config"), _("Config"), 2)
  10. end