gluon-status-page-api: fix indentation of luasrc/lib/gluon/status-page/www/cgi-bin/interfaces

This commit is contained in:
Christof Schulze 2017-02-11 17:26:06 +01:00 committed by Matthias Schiffer
parent 8b63ac792a
commit b38bd942b9

View File

@ -15,10 +15,10 @@ list = util.get_mesh_devices(uconn)
ubus.close(uconn)
interfaces = {}
for _,ifname in ipairs(list) do
pcall(function()
local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address'))
interfaces[ifname] = { address = address }
end)
pcall(function()
local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address'))
interfaces[ifname] = { address = address }
end)
end
io.write(json.stringify(interfaces))