Guest User

Untitled

a guest
Feb 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. cip=`ifconfig eth0.1 | grep inet | cut -d ':' -f 2 | awk 'NR==1{print $1}'`
  4. lip=`nslookup hostname.homeunix.net| grep Address | cut -d ' ' -f 2 | awk 'NR==2{print $1}' `
  5.  
  6. if [ x$cip != x$lip ]; then
  7. /bin/update_dyndns.sh
  8. else
  9. echo "good"
  10. fi
  11. exit 0
Add Comment
Please, Sign In to add comment