Skip to main content

:Linux: ppp0 auto reconnect

guys, I have ADSL through ppp0, How to set it to auto reconnect when
Thanks in advance

This script should do what you want.

============= =============
# Script to check if modem is disconnected & try reconnecting
# Graham Smith - 01/02/2004
# set -x
result=$(/usr/bin/cinternet -i dsl0 -s | /usr/bin/grep disconnect)
#Checks the status of device dsl0 'disconnect'
if [ -n "$result" ]
/usr/bin/cinternet -i dsl0 -A #Start the interface.
sleep 10
else #The interface is up - Just exit
exit 0

Just add the following line to your crontab, replacing with the path
you installed the script in. It checks to see if the modem has been disc
every 3 minutes.

4-59/3 * * * * / 2>&1 /dev/null


Graham Smith

Thank you Graham!
& Thank you basem Narmoug


Popular posts from this blog

اهم التطورات العلمية في العام ٢٠١٩

10 things Dorothée Loorbach learned after losing a lot of money

Dorothée isn't just sharing her life changing experience with work and money, and sharing the following tips which won't make much sense without listening to the tips in her own words Money is important Money equals time Money equals value What people say doesn't matter What people say matters most when people is you! It's really simple - spend less, earn more, invest wisely and value yourself. It's not that easy Being broke sucks Stay Broke - be present in your own life Money isn't important

Rules of war (in a nutshell) Since the beginning, humans have resorted to violence as a way to settle disagreements. Yet through the ages, people from around the world have tried to limit the brutality of war. It was this humanitarian spirit that led to the First Geneva Convention of 1864, and to the birth of modern International Humanitarian Law. Setting the basic limits on how wars can be fought, these universal laws of war protect those not fighting, as well as those no longer able to. To do this, a distinction must always be made between who or what may be attacked, and who or what must be spared and protected.