====== Linksys Revive Connection Script ====== Jan 5, 2005 Script to revive a dead PPPoE link when the Linksys gives up trying (authenitcation failure or timeout). # cat /root/bin/deadlinksys.sh #!/bin/bash ping -c 1 -n 64.56.237.48 > /dev/null [ $? -gt 0 ] && sleep 5 || exit ping -c 1 -n 64.56.239.2 > /dev/null [ $? -gt 0 ] && sleep 10 || exit ping -c 1 -n 64.56.239.1 > /dev/null [ $? -gt 0 ] && sleep 15 || exit curl -s --user admin:admin 'http://192.168.1.1/Gozila.cgi?pppoeAct=1' It's cheesy - but I schedule this to run from cron every 3 minutes.