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)
|
ubus.close(uconn)
|
||||||
interfaces = {}
|
interfaces = {}
|
||||||
for _,ifname in ipairs(list) do
|
for _,ifname in ipairs(list) do
|
||||||
pcall(function()
|
pcall(function()
|
||||||
local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address'))
|
local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address'))
|
||||||
interfaces[ifname] = { address = address }
|
interfaces[ifname] = { address = address }
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
io.write(json.stringify(interfaces))
|
io.write(json.stringify(interfaces))
|
||||||
|
Loading…
Reference in New Issue
Block a user