diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-04 14:57:49 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-04 14:57:49 +0000 |
commit | 09f5bab7448b964f953f42215683ff0883a01026 (patch) | |
tree | 19fddfd29d702414b2a7134571ad0adfb1795d62 /applications/luci-olsr/luasrc/model/cbi/olsr | |
parent | 280872baa79d20de093314e3cfcf2cea14434f83 (diff) |
* luci/olsr: fix names of interfaces with type bridge
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi/olsr')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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) |