summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ser2net/luasrc/controller/ser2net.lua
blob: e29478a27ba437f5aa65035e3a90d61bc47fc3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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