#!/bin/bash TMPDIR=/tmp wget -q http://checkip.dyndns.org/index.html --output-document=/tmp/new.ip if [ "`cat /tmp/new.ip`" = "`cat /tmp/old.ip`" ] then echo "No new IP" > /dev/null ; else wget -q http://''fenn'':''password''@members.dyndns.org/nic/update?hostname=''fenn''.dyndns.org --output-document=/tmp/upd.ip echo "New IP"; cat /tmp/upd.ip; rm /tmp/upd.ip; fi rm -f /tmp/old.ip mv /tmp/new.ip /tmp/old.ip