Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 May 2001 12:34:55 -0700
From:      Dave Tweten <tweten@nas.nasa.gov>
To:        wayne.pascoe@realtime.co.uk
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG
Subject:   Re: Laptop on 2 networks - solutions ? 
Message-ID:  <200105081934.f48JYv094797@gilmore.nas.nasa.gov>
In-Reply-To: Message from Wayne Pascoe <wayne.pascoe@realtime.co.uk>  of "08 May 2001 15:50:24 BST." <m1ae4ngaj3.fsf@zaphod.realtime.co.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help
wayne.pascoe@realtime.co.uk said:
>This all seems far more clumsy than needs be. Is there any better
>solution than this out there? 

If you can't use DHCP, you might at least be able to draw inspiration from it. 
 Check out /sbin/dhclient-script and its handling of the TIMEOUT "reason."  It 
finds out if it is on the net it thinks it is by pinging the presumed default 
router.

It should be possible to use that effect in a script called from pccard.conf 
on connection.  It should be able to decide what net you are connected to and 
configure your machine appropriately.
-- 
M/S 258-5                     | 1024-bit PGP fingerprint: | tweten@nas.nasa.gov
NASA Ames Research Center     |  41 B0 89 0A  8F 94 6C 59 |      (650) 604-4416
Moffett Field, CA  94035-1000 |  7C 80 10 20  25 C7 2F E6 | FAX: (650) 604-4377
We each earn what freedom of speech we defend for those who most offend us.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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