<%#
LuCI - Lua Configuration Interface
-Copyright 2008 Steven Barth <steven@midlink.org>
-Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
+Copyright 2008-2009 Steven Barth <steven@midlink.org>
+Copyright 2008-2009 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
<% for _, i in ipairs(single_ifs) do
dev = get_ifname(i)
vlan = get_vlan(dev)
+
+ if devinfo and devinfo[dev] then
%>
<h3><%:a_s_if_interface Interface%> <%=i['.name']%></h3>
<p style="font-size:90%;padding-left:1em">
<% end %>
<%- end -%>
<br /></p>
- <% end %>
+ <% end end %>
<% for _, b in ipairs(bridge_ifs) do
br = get_brinfo(b)
dev = br.name
+
+ if devinfo and devinfo[dev] then
%>
<h3><%:a_s_if_bridge Bridge%> <%=br.name%></h3>
<p style="font-size:90%;padding-left:1em">
<% end -%><br />
<% end %>
<br /></p>
- <% end %>
+ <% end end %>
</fieldset>
</div>
</form>