* luci/olsr: fix names of interfaces with type bridge

This commit is contained in:
Jo-Philipp Wich 2008-07-04 14:57:49 +00:00
parent 280872baa7
commit 09f5bab744

View file

@ -65,7 +65,11 @@ network:value("")
luci.model.uci.foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
network:value(section[".name"])
if section.type and section.type == "bridge" then
network:value("br-"..section[".name"],section[".name"])
else
network:value(section[".name"])
end
end
end)