Skip to content

Instantly share code, notes, and snippets.

@aidvu
Last active August 29, 2015 14:13
Show Gist options
  • Save aidvu/b7c037044e19fd2379b3 to your computer and use it in GitHub Desktop.
Save aidvu/b7c037044e19fd2379b3 to your computer and use it in GitHub Desktop.
freedns.afraid.org
#!/bin/bash
current_wifi=`nmcli dev wifi | grep yes | cut -d\' -f2`;
home_wifi="{HOME_SSID}";
if [ "$current_wifi" == "$home_wifi" ]; then
wget -O - http://freedns.afraid.org/dynamic/update.php?{KEY} >> /tmp/freedns.afraid.org.log 2>&1 &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment