* 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,8 +65,12 @@ network:value("")
luci.model.uci.foreach("network", "interface", luci.model.uci.foreach("network", "interface",
function (section) function (section)
if section[".name"] ~= "loopback" then if section[".name"] ~= "loopback" then
if section.type and section.type == "bridge" then
network:value("br-"..section[".name"],section[".name"])
else
network:value(section[".name"]) network:value(section[".name"])
end end
end
end) end)
i:option(Value, "HelloInterval") i:option(Value, "HelloInterval")