PirateBoxScripts_Webserver/piratebox/piratebox/bin/station_cnt.sh
2014-01-17 16:47:47 +01:00

9 lines
283 B
Bash
Executable file

#!/bin/sh
## By Matthias Strubel , Licenced by GPL-3 (c)2012-2014
CNT=`iw wlan0 station dump | grep Station | wc -l`
#DATE=`date`
#echo $DATE - $CNT
echo "<a title='Counter is refreshed every 2 minutes, you need to refresh the page'>Currently there are $CNT connected clients</a>"