Re: Double Net cards?


Subject: Re: Double Net cards?
From: Vanja Bucic (vanjab@UDel.Edu)
Date: Mon Apr 02 2001 - 10:20:06 MDT


Looks great, thanks. I was very close, but not this close ;-)

On Monday, April 2, 2001, at 11:46 , Bryn Hughes wrote:
> # Written by Bryn Hughes, March 15, 2001
> # This little script performs regular network checks and then, if it
> detects
> # that the connection has gone down for some reason, attempts to
> reconnect it.
> #
> # I really don't know why this isn't a standard part of Linux already!!
>
>
> RESPONSE=["$(ping -nc 1 <YOUR_IP_ADDRESS_HERE!!> | grep icmp)"]
>
> if [ "${#RESPONSE}" -lt 5 ]; then
>
> RESPONSE_2=["$(ping -nc 1 <YOUR_IP_ADDRESS_HERE!!> | grep icmp)"]
>
> if [ "${#RESPONSE_2}" -lt 5 ]; then
> /sbin/ifdown eth1
> /sbin/ifup eth1
> fi
>
> fi
>



This archive was generated by hypermail 2a24 : Mon Apr 02 2001 - 10:23:03 MDT