Date: Fri, 16 Feb 1996 08:21:40 -0700 From: "Mark G. M. O'Lear" <Mark.Olear@Colorado.EDU> To: questions@freebsd.org Subject: Re: Solution: Telling if User PPP is up or down Message-ID: <3124A104.2C42@Colorado.EDU> References: <199602160811.AAA20475@wsantee.oz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
What about ifconfig -au? It only returns a list of interfaces that are up. ifconfig -a lists all with their up/down status as well. Wes Santee wrote: > > 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 ) -- Mark G. M. O'Lear Mark.Olear@Colorado.EDU
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3124A104.2C42>