summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-multiwan/luasrc/controller/multiwan.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-multiwan/luasrc/controller/multiwan.lua')
-rw-r--r--applications/luci-multiwan/luasrc/controller/multiwan.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/applications/luci-multiwan/luasrc/controller/multiwan.lua b/applications/luci-multiwan/luasrc/controller/multiwan.lua
new file mode 100644
index 000000000..1cbcf9e27
--- /dev/null
+++ b/applications/luci-multiwan/luasrc/controller/multiwan.lua
@@ -0,0 +1,13 @@
+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
+
+end