Subject: Re: pcmcia cards vs. power management
To: Florence HENRY <Florence.Henry@obspm.fr>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 03/17/2003 10:20:58
In message <Pine.NEB.4.51.0303171345190.25058@vjv.bofcz.se>, Florence HENRY wri
tes:
>On Sun, 16 Mar 2003, Steve Bellovin wrote:
>
>> It would, I think, be good if all attached pcmcia cards were detached
>> at suspend time, and at resume time if all inserted cards were
>> reattached.
>
>When your laptop is beeing suspended or resumed, the scripts
>/etc/apm/suspend or /etc/apm/resume, if they do exist, are executed.
>Put inside the commands to detach and reattach your pcmcia cards.
>
>See /usr/share/examples/apm/script  for examples.
>

I have that; that isn't my point.  I can't ifconfig up a card that the 
kernel hasn't yet recognized.  And there's a difference between 
ifconfig'd down and removed -- I can't do that in /etc/apm/suspend.

		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com (2nd edition of "Firewalls" book)