Skip to content
Snippets Groups Projects
Commit 753c1f9e authored by kb-light's avatar kb-light Committed by Nils Schneider
Browse files

gluon-status-page: handle 11s interfaces

parent 5cd17b9b
No related branches found
No related tags found
No related merge requests found
...@@ -70,14 +70,12 @@ io.write("</pre>") ...@@ -70,14 +70,12 @@ io.write("</pre>")
io.write("<h2>Neighbours</h2>") io.write("<h2>Neighbours</h2>")
local interfaces = util.split(util.trim(util.exec("iw dev | grep IBSS -B 5 | grep Interface | cut -d' ' -f2"))) local interfaces = util.split(util.trim(util.exec("iw dev | egrep 'type IBSS|type mesh' -B 5 | grep Interface | cut -d' ' -f2")))
for _, ifname in ipairs(interfaces) do for _, ifname in ipairs(interfaces) do
io.write("<h3>" .. escape_html(ifname) .. "</h3>") io.write("<h3>" .. escape_html(ifname) .. "</h3>")
io.write("<pre>") io.write("<pre>")
io.write(escape_html(sys.exec("iw dev " .. ifname .. " link")) .. "\n")
for _, line in ipairs(util.split(util.exec("iw dev " .. ifname .. " station dump"))) do for _, line in ipairs(util.split(util.exec("iw dev " .. ifname .. " station dump"))) do
local mac = line:match("^Station (.*) %(on ") local mac = line:match("^Station (.*) %(on ")
if mac then if mac then
......
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