On Saturday 31 January 2004 20:44, Graham Smith wrote: <SNIP>
I use the following script to reconnect an ADSL connection which falls over every now and then. It is run by CRON every 10 minutes. It is not the greatest script but it works.
You may be able to adapt the script to suit.
------------------------------ Reconnect_DSL.sh ------------------------------ #!/bin/bash # # Script to check if ADSL is disconnected & try reconnecting # result=$(cinternet -i dsl0 -s | grep disconnect) if [ -n "$result" ] then cinternet -i dsl0 -A sleep 10 else exit 0 fi ____________________ EOF ______________________
Many thanks for the script! I take it that the dsl0 represents the device. I understand some of the script, but I could use a little more commenting, since I am not all that script-savvy, yet --'yet' being key word, I hope. I haven't done any programming in roughly 20 years. :-\ Thanks!! ...CH