diff options
Diffstat (limited to 'applications/luci-app-ser2net/luasrc')
-rw-r--r-- | applications/luci-app-ser2net/luasrc/controller/ser2net.lua | 12 |
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 |