summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-multiwan/luasrc/controller/multiwan.lua
blob: 2a45c5f7bcbd3ea457bee26e8cd8f07faf66675f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module("luci.controller.multiwan", package.seeall)

function index()
	local fs = luci.fs or nixio.fs
	if not fs.access("/etc/config/multiwan") then
		return
	end

	local page

	page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN"))
	page.i18n = "multiwan"
	page.dependent = true

	page = entry({"mini", "network", "multiwan"}, cbi("multiwan/multiwanmini", {autoapply=true}), _("Multi-WAN"))
	page.i18n = "multiwan"
	page.dependent = true
end