gluon-status-page-api: fix indentation of luasrc/lib/gluon/status-page/www/cgi-bin/interfaces
This commit is contained in:
parent
8b63ac792a
commit
b38bd942b9
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user