[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /var/log/messages




On Thu, 27 Aug 1998, Stefan Frank wrote:

> BTW, does anybody know how to check in a bash script, wheter a PPP
> connection is already up ? The /var/run/ppp0.pid file is already created
> when the modem is still dialing the phone number.

Here's another solution-- a script I wrote to do what you're asking.

---
#!/bin/sh
# script written by pmf to check if a ppp connection has been set up after pon

echo Checking ppp connection...

while ! grep ppp0 /proc/net/route > /dev/null
do sleep 1s
done

echo PPP connection now set up!
---

Paul



Reply to: