Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- cip=`ifconfig eth0.1 | grep inet | cut -d ':' -f 2 | awk 'NR==1{print $1}'`
- lip=`nslookup hostname.homeunix.net| grep Address | cut -d ' ' -f 2 | awk 'NR==2{print $1}' `
- if [ x$cip != x$lip ]; then
- /bin/update_dyndns.sh
- else
- echo "good"
- fi
- exit 0
Add Comment
Please, Sign In to add comment