summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ser2net/luasrc
diff options
context:
space:
mode:
authorMichele Primavera <primavera@elmod.it>2020-01-21 12:49:51 +0100
committerMichele Primavera <primavera@elmod.it>2020-01-22 08:50:49 +0100
commit04183da9997bceb2f1cf922a15bd665d96e54a2a (patch)
tree85e5e64a62751d487ef233cf9b55e5057410c706 /applications/luci-app-ser2net/luasrc
parent1c49bda198ef33c0423777a966e6c6ab477da34b (diff)
luci-app-ser2net: add app supporting ser2net (JS)
Signed-off-by: Michele Primavera <primavera@elmod.it>
Diffstat (limited to 'applications/luci-app-ser2net/luasrc')
-rw-r--r--applications/luci-app-ser2net/luasrc/controller/ser2net.lua12
1 files changed, 12 insertions, 0 deletions
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