All pastes #427650 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-06 22:17 UTC
rendered paste body
#!/bin/bash

while [ true ]
do
    ip1=`ifconfig | grep -C 1 ppp0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1`
    sleep 10
    ip2=`ifconfig | grep -C 1 ppp0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1`
    
    if [ $ip1 != $ip2 ]
    then
	ddclient
    fi
done