On Sat, 29 Aug 1998, Udayabaskar wrote:
> #!/bin/bash
> #
> PPPSTATUS=$(ifconfig -a|grep ppp0|awk '{ print $1 }')
>
> if [ ${PPPSTATUS} = 'ppp0' ]
> then
> echo PPP is UP
> else
> echo PPP is DOWN
> fi
Doesn't always work. It's possible for ifconfig to show the ppp0
interface when the modem link is down.
The only sure way is to ping the other end.
Rgds, mtw
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]
- detecting that PPP interface is up Stefan Frank
- Re: detecting that PPP interface is up Tom Garner
- Re: detecting that PPP interface is up Borut Mrak
- Re: detecting that PPP interface is up Nicholas J. Leon
- Re: detecting that PPP interface is up Christian Schulz
- Re: detecting that PPP interface is up Udayabaskar
- Re: detecting that PPP interface is up Michael Talbot-Wilson
- Re: detecting that PPP interface is up Andre Luis da Silva
- Re: detecting that PPP interface is up Ilja V. Slepnev
