diff --git a/package/lean/luci-app-ttyd/Makefile b/package/lean/luci-app-ttyd/Makefile new file mode 100644 index 0000000000..3667783ca3 --- /dev/null +++ b/package/lean/luci-app-ttyd/Makefile @@ -0,0 +1,17 @@ +# Copyright (C) 2016 Openwrt.org +# +# This is free software, licensed under the Apache License, Version 2.0 . +# + +include $(TOPDIR)/rules.mk + +LUCI_TITLE:=LuCI support for ttyd +LUCI_DEPENDS:=+ttyd +LUCI_PKGARCH:=all +PKG_VERSION:=1.0 +PKG_RELEASE:=1 + +include $(TOPDIR)/feeds/luci/luci.mk + +# call BuildPackage - OpenWrt buildroot signature + diff --git a/package/lean/luci-app-ttyd/luasrc/controller/terminal.lua b/package/lean/luci-app-ttyd/luasrc/controller/terminal.lua new file mode 100644 index 0000000000..f4618f2da7 --- /dev/null +++ b/package/lean/luci-app-ttyd/luasrc/controller/terminal.lua @@ -0,0 +1,9 @@ +module("luci.controller.terminal", package.seeall) + +function index() + if not (luci.sys.call("pidof ttyd > /dev/null") == 0) then + return + end + + entry({"admin", "system", "terminal"}, template("terminal"), _("TTYD Terminal"), 10).leaf = true +end diff --git a/package/lean/luci-app-ttyd/luasrc/view/terminal.htm b/package/lean/luci-app-ttyd/luasrc/view/terminal.htm new file mode 100644 index 0000000000..db9b46c840 --- /dev/null +++ b/package/lean/luci-app-ttyd/luasrc/view/terminal.htm @@ -0,0 +1,9 @@ +<%+header%> +