Skip to content
Snippets Groups Projects
Commit b38bd942 authored by Christof Schulze's avatar Christof Schulze Committed by Matthias Schiffer
Browse files

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

parent 8b63ac79
No related branches found
No related tags found
No related merge requests found
...@@ -15,10 +15,10 @@ list = util.get_mesh_devices(uconn) ...@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment