[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#28383: Ejecting PCMCIA cards at suspend time

On Thu, Oct 22, 1998 at 12:12:26PM -0400, Brian Mays wrote:

> Not all controllers or cards have trouble suspending.  I can add the
> scripts, but I they should be optional.  That is, cardctl eject and
> insert should not be performed by default, but the pcmcia-cs postinst
> script should ask the following question:
> [...]

What about cardctl suspend and resume?  They seem to work well for me, since
they only cut power to the PCMCIA card without actually removing the driver. 
That means, for example, that my eth0 device doesn't go away, routes don't
get lost, etc.

Do the suspend/resume commands cause the same problems as eject/insert?  Do
they work as reliably?

> Does anyone know of a good way for pcmcia-cs to provide these scripts
> and optionally activate them in the postinst script?

My first thought would be to put a variable setting in, say,
/etc/pcmcia.conf, and source that from your apmd scripts.  Then test the
variable before you do anything.  Several init.d scripts work that way, I

Have fun,


Reply to: