User Tools

Site Tools


linksysreviveconnectionscript

Linksys Revive Connection Script

<em>Jan 5, 2005</em>

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 &gt; /dev/null
[ $? -gt 0 ] &amp;&amp; sleep 5  || exit

ping -c 1 -n 64.56.239.2 &gt; /dev/null
[ $? -gt 0 ] &amp;&amp; sleep 10  || exit

ping -c 1 -n 64.56.239.1 &gt; /dev/null
[ $? -gt 0 ] &amp;&amp; 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.

linksysreviveconnectionscript.txt · Last modified: 2020/02/13 22:55 (external edit)

free spam filter