Skip to content

Instantly share code, notes, and snippets.

@pingec
Last active July 26, 2017 01:45
Show Gist options
  • Select an option

  • Save pingec/6155729e6c8623cc742a6a946e1f8da7 to your computer and use it in GitHub Desktop.

Select an option

Save pingec/6155729e6c8623cc742a6a946e1f8da7 to your computer and use it in GitHub Desktop.
Log speedtest on openwrt router
SPEED=$(wget http://ftp.arnes.si/pub/packages/debian/dists/Debian8.7/main/Contents-amd64.gz -O /dev/null 2>&1 | grep saved)
PING=$(ping google.com -c10 2>&1 | grep round)
STATIONS=$(iw dev wlan0 station dump | grep Station)
echo $SPEED $PING $STATIONS >> /tmp/speedtest.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment