diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-04-16 14:06:42 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-04-16 14:06:42 +0000 |
commit | be09c6ca6ef2b82a29530667e1acef382791b1d5 (patch) | |
tree | 52a7a588e17b06433cb66cbf714c1a0bb4d31633 /applications/luci-multiwan/luasrc/controller/multiwan.lua | |
parent | daca626e86ff51e72f6423f3fb69e1a1d16d7c59 (diff) |
applications: add frontend for the MultiWAN agent
Diffstat (limited to 'applications/luci-multiwan/luasrc/controller/multiwan.lua')
-rw-r--r-- | applications/luci-multiwan/luasrc/controller/multiwan.lua | 13 |
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 |