On Fri, 28 Aug 1998, Stefan Frank wrote:

 # Hi,
 # 
 # i'm looking for a way to check within a shell script wheter a PPP connection
 # is already up or not. To check for a /var/run/ppp0.pid file did not help, as
 # this file is already created when the modem is still dialing my ISP's
 # number. 

#!/bin/sh

if grep ppp /proc/net/dev>/dev/null; then
        echo yep
fi

G'day!

-----------------------------------------------------------------------------
 Nicholas J. Leon                              "Elegance Through Simplicity"
  [EMAIL PROTECTED] -                        - http://mrnick.binary9.net

                   8 4 9 1 7 3 <-- what is the pattern?


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to