From 04183da9997bceb2f1cf922a15bd665d96e54a2a Mon Sep 17 00:00:00 2001 From: Michele Primavera Date: Tue, 21 Jan 2020 12:49:51 +0100 Subject: luci-app-ser2net: add app supporting ser2net (JS) Signed-off-by: Michele Primavera --- applications/luci-app-ser2net/luasrc/controller/ser2net.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 applications/luci-app-ser2net/luasrc/controller/ser2net.lua (limited to 'applications/luci-app-ser2net/luasrc') diff --git a/applications/luci-app-ser2net/luasrc/controller/ser2net.lua b/applications/luci-app-ser2net/luasrc/controller/ser2net.lua new file mode 100644 index 0000000000..e29478a27b --- /dev/null +++ b/applications/luci-app-ser2net/luasrc/controller/ser2net.lua @@ -0,0 +1,12 @@ +module("luci.controller.ser2net", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/ser2net") then + return + end + + entry({"admin", "services", "ser2net"}, firstchild(), "ser2net").dependent = true + entry({"admin", "services", "ser2net", "settings"}, view("ser2net/settings"), _("Settings"), 1).leaf = false + entry({"admin", "services", "ser2net", "proxies"}, view("ser2net/proxies"), _("Proxies"), 2).leaf = false + entry({"admin", "services", "ser2net", "leds"}, view("ser2net/leds"), _("LEDs"), 3).leaf = false +end -- cgit v1.2.3