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>
next in thread | previous in thread | raw e-mail | index | archive | help
--5xSkJheCpeK0RUEJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 04, 2001 at 08:21:28AM -0700, Lars Eggert wrote: > Robert Blacquire wrote: <snip> >=20 > We have a similar set of scripts, that work a little differently: We have= a > hierarchy of subdirectories under /etc/locations, e.g. >=20 > /etc/locations > /etc/locations/128.9.160.161 > /etc/locations/128.9.144.145 > /etc/locations/disconnected >=20 > 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).=20 >=20 > 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 por= ts > 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.) >=20 > The benefit of our scheme (in my opinion) is that you can use the same ca= rd > at multiple locations. And you don't have to manually specify which > location you're at. >=20 > If there's interest, I can clean them up and make them available... > --=20 > 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 --=20 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! --5xSkJheCpeK0RUEJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjrLPqEACgkQ1ODVtOXCG4hhhACcDhnUObuJBAMaRrdyN5HPwMZK h2kAnirLwlQhJ77vGCaFyl1QLIEv1vDG =xfLo -----END PGP SIGNATURE----- --5xSkJheCpeK0RUEJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010404173250.D51040>