Hi,
assuming you box has a configured cron, you can add the following line to your /etc/crontab file
every 5 minutes.
Then you have the values.
if you want to remove that file very startup, then change the path into /opt/piratebox/tmp/connection.log
- that folder is cleaned up every boot.
regards Matthias
assuming you box has a configured cron, you can add the following line to your /etc/crontab file
*/5 * * * * iw dev wlan0 station dump | grep -c Station | wc -l >> /opt/piratebox/connection.logThat will save the amount current connected clients in the file /opt/piratebox/connection.log
every 5 minutes.
Then you have the values.
if you want to remove that file very startup, then change the path into /opt/piratebox/tmp/connection.log
- that folder is cleaned up every boot.
regards Matthias