%+header%> <% local interfaces = { } local ifnames = {} local uci = luci.model.uci.cursor_state() uci:foreach("network", "interface", function(s) if s.ifname ~= "lo" then table.insert( interfaces, "'" .. ( s.ifname or s['.name'] ) .. "'" ) ifnames[s.ifname or s['.name']] = s['.name'] end end ) -%>
<%+footer%>