Skip to content

Instantly share code, notes, and snippets.

@JarrettR
Last active August 29, 2015 14:17
Show Gist options
  • Save JarrettR/14db852eaa84ed2d0447 to your computer and use it in GitHub Desktop.
Save JarrettR/14db852eaa84ed2d0447 to your computer and use it in GitHub Desktop.
#!/bin/sh
var=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/' | sed 's/\./-/g' )
wget -q --spider http://api.hackspace.ca/s/vhs/data/fpga/update?value=$var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment