#!/usr/bin/haserl <%in /www/include/header %>
<% htmloutput=0 devs=$(iw dev | sed -n '/^phy/,/Interface/{s/^.*Interface //p}') for dev in $devs do scanresult="$(iw dev $dev scan)" if [ $? -ne 0 ]; then continue; fi %> <% done if [ ${htmloutput} -eq 0 ]; then echo "No wireless interface available that supports scan." fi %> |