Re: script to stay connected//dynamic IPs

2004-06-02 Thread Mal Beaton
Sturla Holm Hansen wrote: David Baron wrote: On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: Incoming from David Baron: Is there a little script that can be cron-d to check if the internet connection (pptp -> ppp0) is up and if not, reconnect? Try using the keyword "persist"

Re: script to stay connected//dynamic IPs

2004-06-02 Thread Mal Beaton
Sturla Holm Hansen wrote: David Baron wrote: On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: Incoming from David Baron: Is there a little script that can be cron-d to check if the internet connection (pptp -> ppp0) is up and if not, reconnect? Try using the keyword "persist"

Re: script to stay connected//dynamic IPs

2004-06-02 Thread David Baron
On Wednesday 02 June 2004 17:17, [EMAIL PROTECTED] wrote: > Just run a cron-job with a script like this > > #!/bin/bash > > ifconfig ppp0 > if [ $? != "0" ] > then >     ifup ppp0 > fi This an another, similar script posted did not quite work. Ifup says ppp0 is an unconfigured device if not conn

Re: script to stay connected//dynamic IPs

2004-06-02 Thread Sturla Holm Hansen
David Baron wrote: On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: Incoming from David Baron: Is there a little script that can be cron-d to check if the internet connection (pptp -> ppp0) is up and if not, reconnect? Try using the keyword "persist" in /etc/ppp/options.

Re: script to stay connected//dynamic IPs

2004-06-02 Thread David Baron
On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: > Incoming from David Baron: > > Is there a little script that can be cron-d to check if the internet > > connection (pptp -> ppp0) is up and if not, reconnect? > > Try using the keyword "persist" in /etc/ppp/options. It is there. Sporadic