Date: Wed, 04 Apr 2001 08:21:28 -0700 From: Lars Eggert <larse@ISI.EDU> To: Robert =?iso-8859-1?Q?Blacqui=E8re?= <freebsd@guldan.demon.nl> Cc: freebsd-mobile@freebsd.org Subject: Re: pccard startup scripts Message-ID: <3ACB3BF8.C145CEFE@isi.edu> References: <20010404140932.A48567@thorin.guldan.demon.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Robert Blacquire wrote:
> I made some scripts for pccard as replacement for
> the pccard_ether scripts. It has some of the features
> of the linux-pcmcia-cs software. It supports now different
> network settings (easily switchable). Using a single
> config script in which is defined the network settings for
> different locations and different network cards. The config
> depends on the scheme, driver loaded and the mac address of
> the inserted pccard. Before you insert the pccard you tell
> the system which scheme to use. And then you can insert the
> pccard and all settings will be made according to the config.
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
[-- Attachment #2 --]
0# *H
010 + 0 *H
00A#0
*H
010 UZA10UWestern Cape10UDurbanville10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 1999.9.160
000824203008Z
010824203008Z0T10
UEggert1
0U*Lars10ULars Eggert10 *H
larse@isi.edu00
*H
0 \p9 H;vr∩6"C?mxfJf7I[3CF́L I
- zHRVA怤2]0-bL)%X>nӅ w0u0*+e!0 00L2uMyffBNUbNJJcdZ2s0U0
larse@isi.edu0U0 0U#0`fUXFa#Ì0
*H
_3 F=%nWY-HXD9UOc6ܰwf@uܶNԄR?Pr}E1֮23mFhySwM_h|d yR=$P 00}0
*H
010 UZA10UWestern Cape10U Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H
personal-freemail@thawte.com0
990916140140Z
010915140140Z010 UZA10UWestern Cape10UDurbanville10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 1999.9.1600
*H
0 iZz]!#rLK~r$BRW{azr98e^eyvL>hput ,O 1ArƦ]D.Mօ>lx~@эWs0FO 7050U0 0U#0rIs4Uvr~wƲ0
*H
kY1rr`HU{gapm¥7؝(V\uoƑlfq|ko!6- -mƃRt\~
orzg,ks nΝc) ~U100010 UZA10UWestern Cape10UDurbanville10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 1999.9.16#0 + 0 *H
1 *H
0 *H
1
010404152128Z0# *H
1:ti*jZy4= 0R *H
1E0C0
*H
0*H
0+0
*H
@0
*H
(0
*H
dL]ﯧPKQToOIk/\ݝ^2tmW Fg~_I^d*cYozE\;}6=y4d5{{hS9ZWU@dKyp\{
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ACB3BF8.C145CEFE>
