Package: pcmcia-cs Version: 3.2.5-11 Tags: patch The "stop" option to /etc/init.d/pcmcia unloads the kernel modules it loaded only if the "ds" module is found to be loaded. But on at least one of my systems, running Debian kernel 2.6.11, "ds" appears to be compiled into the kernel while yenta_socket, pcmcia_core and pcmcia are modules.
I want the modules unloaded so that the devices will be powered down, because I'm trying maximize the battery life on my laptop. I see no harm in just always trying to unload all the modules, which is what this patch does. < Stephen --- pcmcia-cs-3.2.5/etc/rc.pcmcia 2005-07-21 12:01:28.000000000 -0700 +++ etc/rc.pcmcia 2005-06-09 12:27:31.000000000 -0700 @@ -178,12 +178,12 @@ stop) done fi killall -q "CardBus Watcher" - if module_is_loaded ds ; then - /sbin/rmmod ds - /sbin/rmmod $PCIC 2>/dev/null || \ - /sbin/rmmod yenta_socket 2>/dev/null - /sbin/rmmod pcmcia_core 2>/dev/null - fi + /sbin/rmmod ds 2>/dev/null + /sbin/rmmod pcmcia 2>/dev/null + /sbin/rmmod "$PCIC" 2>/dev/null || \ + /sbin/rmmod yenta_socket 2>/dev/null + /sbin/rmmod rsrc_nonstatic 2>/dev/null + /sbin/rmmod pcmcia_core 2>/dev/null echo "done." rm -f /var/lock/subsys/pcmcia EXITCODE=0 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]