From fbae92e522692d9bb34501ad9a805da794a47123 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 7 Aug 2008 20:21:38 +0000 Subject: modules/admin-full: Added support for interface aliases --- .../luci-splash/luasrc/model/cbi/splash/splash.lua | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'applications/luci-splash/luasrc/model/cbi/splash') diff --git a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua index ed5cdc181..49257f1ba 100644 --- a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua +++ b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua @@ -11,13 +11,24 @@ s.template = "cbi/tblsection" s.addremove = true s.anonymous = true -iface = s:option(ListValue, "zone", "Firewallzone") +zone = s:option(ListValue, "zone", "Firewallzone") luci.model.uci.foreach("firewall", "zone", function (section) - iface:value(section.name) + zone:value(section.name) end) -gateway = s:option(Value, "gateway", "Gateway") +iface = s:option(ListValue, "network", "Netzwerk") +luci.model.uci.foreach("network", "interface", + function (section) + if section[".name"] ~= "loopback" then + iface:value(section[".name"]) + end + end) + +luci.model.uci.foreach("network", "alias", + function (section) + iface:value(section[".name"]) + end) s = m:section(TypedSection, "whitelist", "Automatische Freigabe") s.template = "cbi/tblsection" -- cgit v1.2.3