Skip to content

Commit

Permalink
lm_hwd_wan: if option autogenerated=false and linux_ifname option not
Browse files Browse the repository at this point in the history
specified, do not use it as wan

Signed-off-by: Pau Escrich <p4u@dabax.net>
  • Loading branch information
p4u committed Aug 6, 2016
1 parent 4982d23 commit 32661be
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/lime-system/files/usr/lib/lua/lime/network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,13 @@ end

function network.configure()
local specificIfaces = {}
config.foreach("net", function(iface) specificIfaces[iface["linux_name"]] = iface end)

config.foreach("net", function(iface)
if iface["linux_name"] then
specificIfaces[iface["linux_name"]] = iface
end
end)

local fisDevs = network.scandevices()

network.setup_rp_filter()
Expand Down

0 comments on commit 32661be

Please sign in to comment.