My ip is different and this script don't update my ip to server of dyndns.org
Why? because i don't have installed BusyBox v1.00 How can i install BusyBox v1.00? Can you help me ? > > > > #!/bin/sh > > > > # DynDNS updater compatible with BusyBox v1.00 > > > > # requires: wget, ifconfig, sed, cut, date > > > > > > > > ##################################### > > > > IFACE=eth1 # Internet interface > > > > DYNHOST=myhost.dyndns.org # DynDNS hostname > > > > DYNUSER=username # Username > > > > DYNPASS=password # Password > > > > LOGFILE=/var/log/dyndnsbb.log # Path for logfile > > > > ###################################### > > > > > > > > IPDIN=`ifconfig $IFACE | sed -e '/inet/!d' -e 's/.*addr://' - > e 's/ > > > [ ].*//'` > > > > > > > > if [ "$1" = "-f" ]; then # force ip update > > > > IPDINX=""; > > > > else > > > > IPDINX="$IPDIN"; > > > > fi > > > > > > > > while [ "1" = "1" ]; do # infinite loop > > > > > > > > IPVALID=`echo $IPDIN | cut -d "." -f 4` > > > > if [ "$IPVALID" -gt 0 ]; then > > > > if [ "$IPDIN" != "$IPDINX" ]; then > > > > DYNRES=`wget -O - > > > > "http://$DYNUSER:$DYNPASS@/nic/update?system=dyndns&hostna > > > > me=$DYNHOST&myip=$IPDIN"` > > > > DYNDATE=`date -R` > > > > echo "$DYNDATE: New IP $IPDIN. DynDNS response: $DYNRES" > >> > > > $LOGFILE > > > > IPDINX="$IPDIN" > > > > fi > > > > fi > > > > sleep 120 # check for IP changes every 120 > > > seconds > > > > IPDIN=`ifconfig $IFACE | sed -e '/inet/!d' - e 's/.*addr://' - > > > e 's/[ > > > > ].*//'` > > > > > > > > Done
