Date: Wed, 4 Apr 2001 17:32:50 +0200 From: =?iso-8859-1?Q?Robert_Blacqui=E8re?= <freebsd@guldan.demon.nl> To: Lars Eggert <larse@ISI.EDU> Cc: freebsd-mobile@freebsd.org Subject: Re: pccard startup scripts Message-ID: <20010404173250.D51040@thorin.guldan.demon.nl> In-Reply-To: <3ACB3BF8.C145CEFE@isi.edu>; from larse@ISI.EDU on Wed, Apr 04, 2001 at 08:21:28AM -0700 References: <20010404140932.A48567@thorin.guldan.demon.nl> <3ACB3BF8.C145CEFE@isi.edu>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Wed, Apr 04, 2001 at 08:21:28AM -0700, Lars Eggert wrote:
> Robert Blacquire wrote:
<snip>
>
> We have a similar set of scripts, that work a little differently: We have a
> hierarchy of subdirectories under /etc/locations, e.g.
>
> /etc/locations
> /etc/locations/128.9.160.161
> /etc/locations/128.9.144.145
> /etc/locations/disconnected
>
> Those subdirectories contain overrides for files under /etc that will be
> linked in place for that particular location during startup (or a manually
> triggerd "switch-location" event).
>
> The fun part is how we detect locations: the name of the subdirectories
> under /etc/locations are the IP addresses of well-known hosts (routers, in
> this example) at the respective location. We use the arping tool from ports
> to generate ARP requests out of all interfaces for any of these addresses.
> The first one to succeed gives you which location you're at.
> ("Disconnected" is the fallback if none succeeds.)
>
> The benefit of our scheme (in my opinion) is that you can use the same card
> at multiple locations. And you don't have to manually specify which
> location you're at.
>
> If there's interest, I can clean them up and make them available...
> --
> Lars Eggert <larse@isi.edu> Information Sciences Institute
> http://www.isi.edu/larse/ University of Southern California
It is very nice auto discovering the location with use of arpping but
I have been in locations where arp broadcast and arp are more or less
disabled. Also i have wireless card and they need some configuration
before you have access to the network. Like WEP keys.
But it is also very neat setup
Robert
--
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?
OpenBSD: He guys you left some holes out there!
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjrLPqEACgkQ1ODVtOXCG4hhhACcDhnUObuJBAMaRrdyN5HPwMZK
h2kAnirLwlQhJ77vGCaFyl1QLIEv1vDG
=xfLo
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010404173250.D51040>
