diff options
Diffstat (limited to 'applications/luci-splash/luasrc')
-rw-r--r-- | applications/luci-splash/luasrc/model/cbi/splash/splash.lua | 11 | ||||
-rw-r--r-- | applications/luci-splash/luasrc/view/splash/splash.htm | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua index 6050ac8a0..a14a38c1d 100644 --- a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua +++ b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua @@ -11,11 +11,12 @@ s.addremove = true s.anonymous = true iface = s:option(ListValue, "network", "Schnittstelle") -for k, v in pairs(luci.model.uci.sections("network")) do - if v[".type"] == "interface" and k ~= "loopback" then - iface:value(k) - end -end +luci.model.uci.foreach("network", "interface", + function (section) + if section[".name"] ~= "loopback" then + iface:value(section[".name"]) + end + end) s = m:section(TypedSection, "whitelist", "Automatische Freigabe") s.addremove = true diff --git a/applications/luci-splash/luasrc/view/splash/splash.htm b/applications/luci-splash/luasrc/view/splash/splash.htm index 363c39072..c2a2f889a 100644 --- a/applications/luci-splash/luasrc/view/splash/splash.htm +++ b/applications/luci-splash/luasrc/view/splash/splash.htm @@ -1,4 +1,4 @@ -<% local c = luci.model.uci.sections("freifunk").community %> +<% local c = luci.model.uci.get_all("freifunk", "community") %> <h1><%:welcome Willkommen%>!</h1> <p> |