[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adsl keep alive script



Title: Message
Hello all,
 
I'm trying to write a script which will keep my adsl connection up all the time.
 
I tried something like running :
while 1
rm -rf /var/run/pp*
 pptp parameters nodetach &
end
 
but from some reason, whenever i ran it, it worked for about 10 minutes, and after ten minutes, the pptp was detached and alot of pptp process started ( even that the connection was still alive ).
 
I also wish to enter in the script, that if the modem fails, i could telnet it a reboot it under the system menu ( something like telnet with chat, maybe netcat).
 
Anyone wrote something like that?
 
Thanks,
Ohad.