luci.model.uci.foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
+ iface.default = iface.default or section[".name"]
iface:value(section[".name"])
s:depends("interface", section[".name"])
end
s:option(Value, "ipaddr", translate("ipaddress"))
-return m, m2
\ No newline at end of file
+return m, m2