• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6echo "Content-Type: text-plain"
7echo "Status: 200 Ok"
8echo
9
10iwconfig 2>/dev/null | grep '^[a-z]' | \
11while read IF DATA;
12do
13    iwinfo $IF assoclist 2>/dev/null | grep -i '^[0-9a-f]\{2\}:';
14done;
15
16echo --;
17