* luci/olsr: fix names of interfaces with type bridge
[project/luci.git] / applications / luci-olsr / luasrc / model / cbi / olsr / olsrd.lua
index 67b3169..8bad520 100644 (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)