summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-multiwan/luasrc/controller/multiwan.lua
blob: 561747b0f611ac973a68d408a964c2ae87c44504 (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 = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), "Multi-WAN")
	page.i18n = "multiwan"
	page.dependent = true

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


end