#!/bin/sh
MyIP=`/sbin/ifconfig eth0|grep inet|cut -d: -f2|cut -d" " -f1`
echo $MyIP > ~/.MyIP.now
if !(/usr/bin/diff ~/.MyIP.now  ~/.MyIP.then)  ;  then
    sed "s/~~~MyIP~~~/$MyIP/g" ~/up.html_source > ~/up.html
    echo -e "cd public_html\nput up.html dynamic.html" | /usr/bin/ftp -v www.
MyISP.com
    cp ~/.MyIP.now  ~/.MyIP.then
fi
