Subject: Re: pcmcia insertion/removal hooks
To: Jukka Marin <email@example.com>
From: Tero Kivinen <firstname.lastname@example.org>
Date: 06/17/2001 17:24:11
Jukka Marin writes:
> On Sun, Jun 17, 2001 at 04:59:23PM +0300, Tero Kivinen wrote:
> > I wrote cardwatchd + some kernel patches half a year ago, and I have
> > been using them daily since. It detects when you insert or remove
> > pcmcia or cardbus cards, and then cardwatchd will run script
> > associated with the card type from the /etc/cardwatch directory.
> Sounds nice. I could use that with CompactFLASH cards to automagically
> grab digicam images off the CF card.
Yep. Just write /etc/cardwatch/disk script to mount the card, copy
stuff away, etc...
> > I submitted it as a PR december 07 2000, but haven't heard anything
> > since. Check out kern/11659, and kern/11694. I have updated version
> > for the NetBSD-current, and if anybody wants them I can put them
> > somewhere.
> I wonder if these could be made a standard NetBSD feature?
I would really like them to make to the standard NetBSD as I have been
so used to them, that I cannot live without them, and every time I
update to new kernel, I need to do those few line patches to get them
One thing I was thinking could be add to the cardwatchd, is to
optionally send detach commands for each card when the system is
suspended and then again attach commands when the system is again
resumed. This way the wlan card would immediately notice when I resume
my laptop in the office, that it needs to change encryption key etc.
Now I just simply pop out the wlan card and reinsert it immediately
back, so it will run the proper attach routine for it and reconfigure
itself to new environment.
Other possibility would be to change the apm scripts to do know about
the wlan cards and try to reconfigure them when I resume the
email@example.com Work : +358 303 9870
SSH Communications Security http://www.ssh.fi/
SSH IPSEC Toolkit http://www.ssh.fi/ipsec/