1 #!/bin/sh 2 3 # this script is to be installed in /www/cgi-bin on the OpenWRT 4 # test AP as per the DOC section of the control file 5 6 echo "Content-Type: text-plain" 7 echo "Status: 200 Ok" 8 echo 9 10 iwconfig 2>/dev/null | grep '^[a-z]' | \ 11 while read IF DATA; 12 do 13 iwinfo $IF assoclist 2>/dev/null | grep -i '^[0-9a-f]\{2\}:'; 14 done; 15 16 echo --; 17