From: Jo-Philipp Wich Date: Fri, 4 Jul 2008 14:57:49 +0000 (+0000) Subject: * luci/olsr: fix names of interfaces with type bridge X-Git-Tag: 0.8.0~715 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=09f5bab7448b964f953f42215683ff0883a01026 * luci/olsr: fix names of interfaces with type bridge --- diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index 67b3169a0..8bad52063 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -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)