Subject: Re: events on pcmcia card adds?
To: Chrischen <cchen@nougat.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-users
Date: 05/15/2001 21:14:55
On Mon, May 14, 2001 at 09:37:17PM -0700, Chrischen wrote:
> Greetings!
> 
> After learning about how you can set apmd to run scripts on events like
> suspends, AC/DC power source changes, and other sundry things, I got
> wondering, is there a way to do that for pcmcia devices? Can my system
> ifconfig interfaces and start/stop other things when I add, for instance,
> my wavelan cards?
> 
> I've scanned over the man pages and it's not readily apparent, but maybe
> one could write a userland pcmciad daemon that responds to events.

There's no hook in the kernel for that yet (but I believe someone is working
on a general event mechanism). I think you can watch syslog messages ...

--
Manuel Bouyer <bouyer@antioche.eu.org>
--