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]

Reply via email to