What happens if 213.208.127.99 (or any other address) goes down?

Alex.


On Mon, 2001-12-10 at 16:39, Andy Mayer wrote:
> 
> Why not just use the "asdl.sh restart" command in the script as follows? The
> script even mails you to let you know there has been a problem.
> 
> Cut Here ----------------
> 
> #!/bin/sh
> /sbin/ifconfig | grep ppp0 >/dev/null 2>&1 && ping -c2 -U 213.208.127.99
> 2>&1 >/dev/null
> if test $? -eq 1
> then
> /usr/local/share/speedtouch/adsl.sh restart
> echo "If you are receiving this mail then ADSL has reconnected!" | mail -s
> "ADSL Autoreconect" [EMAIL PROTECTED]
> fi
> 
> Cut Here ----------------
> 
> The script I am using is adsl.sh revision 0.2 from Edouard Gomez .Can
> anybody comment on the effectiveness of using "asdl.sh restart" in the
> script above and calling this every few minutes from crontab?
> 
> Cheers,
> 
> Andy
> ---
> http://cyril.zooburner.com
> 
> ----- Original Message -----
> From: "Bananaskin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, December 09, 2001 7:52 PM
> Subject: [speedtouch] Re: Script
> 
> 
> >
> > It does yes, I have looked at Alex Marandon's link and think that Chris's
> > post is better.. here it is.
> >
> > Note that uhci is modular and not built into the kernel, also note that
> > usbcore attempts to be unloaded, however this does not work with mine for
> > some strange reason.
> >
> > Finally, add this script to roots crontab executing every 5 mins
> >
> > Cut Here ----------------
> >
> > #!/bin/sh
> > ifconfig | grep ppp0 >/dev/null 2>&1 && ping -c2 217.32.81.203 2>&1
> > >/dev/null
> > if test $? -eq 1
> > then
> > killall pppd
> > sleep 1
> > killall -9 pppd pppoa3
> > killall modem_run
> > sleep 1
> > killall -9 modem_run pppd pppoa
> > umount /proc/bus/usb
> > rmmod uhci
> > rmmod usbcore
> > sleep 3
> > modprobe uhci
> > sleep 3
> > mount /proc/bus/usb
> > /usr/local/btinternet/modem_run -v 1 -m -f /usr/local/btinternet/mgmt.o
> > ulimit -n 200
> > ulimit -u 500
> > pppd call adsl
> > fi
> >
> > Cut Here ----------------
> >
> > Regards, Michael
> >
> > ----- Original Message -----
> > From: "Josh Baird" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, December 08, 2001 7:07 PM
> > Subject: [speedtouch] Re: Script
> >
> >
> > >
> > > This script that you all are talking about.. Does it check to see if the
> > PPP
> > > connection is still active, and redial if its not?..  I need a better
> > script..
> > > will someone post it to the list?..
> > >
> > >
> > >
> > >
> > >
> > > Liste de diffusion modem ALCATEL SpeedTouch USB
> > > Pour se d�sinscrire :
> > mailto:[EMAIL PROTECTED]?subject=unsubscribe
> > >
> > >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
> >
> >
> >
> > Liste de diffusion modem ALCATEL SpeedTouch USB
> > Pour se d�sinscrire :
> mailto:[EMAIL PROTECTED]?subject=unsubscribe
> >
> >
> >
> >
> 
> 
> 
> Liste de diffusion modem ALCATEL SpeedTouch USB
> Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
> 
>       



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe

        

Reply via email to