I'm new to linux and I've managed to get my wireless card working but something weird is going on.

My system oscillates between two states:

1.) When my card is working and I can browse the internet, the system shuts down cleanly but when it starts up from a clean shutdown...the card doesn't work.

2.) When I shut down from the card not working state, it freezes at pcmcia shutdown and I have to force my computer to turn off uncleanly. When it reboots, other stuff seems to be loaded involving cardmgr and then the card works...back to state 1.

I can get a clean shutdown and the card to work but only if I perform cardctl eject/insert in state 1 above. I tried adding this instruction to /etc/rc.local but it doesn't seem to do the same job.

There must be a way to fix this weird behaviour and I'm convinced it involves pcmcia/cardmgr/cardctl but I can't work out how.

I'm running redhat by the way. Can anyone help? Thanks.