Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 1996 00:11:54 -0800 (PST)
From:      "Wes Santee" <wsantee@wsantee.oz.net>
To:        wsantee@wsantee.oz.net (Wes Santee)
Cc:        questions@freebsd.org
Subject:   Solution: Telling if User PPP is up or down
Message-ID:  <199602160811.AAA20475@wsantee.oz.net>
In-Reply-To: <199602160655.WAA17072@wsantee.oz.net> from "Wes Santee" at Feb 15, 96 10:55:35 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Wes Santee sez:
> 
> Terry Lambert sez:
> > Or "ifconfig tun0", and if it reports an "inet" line (if it doesn't,
> > it has never been up), check it for 0.0.0.0 (and make sure it gets
> > upt back correctly by pppd when it downs...).
> 
> Someone else mentioned in e-mail to take a look at ifconfig and see
> what it will tell me.  I'll give it a shot.

Well, that didn't do it, but upon further exploration of the PPP man
page, it says that when the process is locking the com port, it
creates a lock-file as /var/spool/lock/LCK..<com name> where <com
name> is something like cuaa0, cuaa1, etc.  As it turns out, when
the link is up, the lockfile exists, and when the link is down, it
is removed.

Cheers,
-- 
( -Wes Santee <wsantee@wsantee.oz.net>  |                                )
(             <wsantee@oz.net> (backup) | No one told you when to run... )
( http://www.oz.net/~wsantee            \------------------------------- )
( finger for PGP info                                 Powered by FreeBSD )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602160811.AAA20475>