gluon-mesh-batman-adv-core: neighbours.d/wifi: output empty object instead of empty list when there are no neighbours on an interface

This commit is contained in:
Matthias Schiffer 2015-10-15 02:42:28 +02:00
parent 9f6009469b
commit 2fefdeee63
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ end
local wifi = {}
for address, iface in pairs(interfaces()) do
wifi[address] = { neighbours = neighbours(iface) }
wifi[address] = { [{}] = true, neighbours = neighbours(iface) }
end
if next(wifi) then