From 753c1f9e2ae0598b6cf1a1bb3fea83ff610cb188 Mon Sep 17 00:00:00 2001 From: kb-light Date: Sun, 23 Aug 2015 23:03:36 +0200 Subject: [PATCH] gluon-status-page: handle 11s interfaces --- .../files/lib/gluon/status-page/www/cgi-bin/status | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/gluon-status-page/files/lib/gluon/status-page/www/cgi-bin/status b/package/gluon-status-page/files/lib/gluon/status-page/www/cgi-bin/status index b31e2f73..f0c8cbd8 100755 --- a/package/gluon-status-page/files/lib/gluon/status-page/www/cgi-bin/status +++ b/package/gluon-status-page/files/lib/gluon/status-page/www/cgi-bin/status @@ -70,14 +70,12 @@ io.write("") io.write("

Neighbours

") -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 io.write("

" .. escape_html(ifname) .. "

") io.write("
")
 
-  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
     local mac = line:match("^Station (.*) %(on ")
     if mac then