Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60291 - Pcmcia card manager won'd remove the module when service is stopped
Summary: Pcmcia card manager won'd remove the module when service is stopped
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 68964
  Show dependency tree
 
Reported: 2004-08-13 21:12 UTC by dimfox
Modified: 2011-10-30 22:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dimfox 2004-08-13 21:12:11 UTC
The pcmcia always try to 'modprobe i82365' first, when it fails it will modprobe 'yenta_socket'. 
The problem is, when you stop the service, it will only try to unload 'i82365', not the 'yenta_socket'

the problem can be solved by adding an extra line into "/etc/init.d/pcmcia"
/sbin/rmmod $PCIC_ALT> /dev/null

So it's 'stop' procedure should look like this:
stop() {
        local code

        if [ -w ${SC} ] ; then rm -f ${SC} ; fi

        ebegin "Stopping pcmcia"
        start-stop-daemon --stop --quiet --pidfile /var/run/cardmgr.pid --retry 5
        code=$?

        if [ -n `fgrep "ds " /proc/modules | head -n1 | cut -c1` ]; then
                echo "removing modules"
                /sbin/rmmod ds 2> /dev/null
                /sbin/rmmod $PCIC 2> /dev/null
                /sbin/rmmod $PCIC_ALT> /dev/null #<---added line
                /sbin/rmmod pcmcia_core 2> /dev/null
        fi

        eend $code
}




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Henrik Brix Andersen 2005-04-25 05:13:17 UTC
Fixed in sys-apps/pcmcia-cs-3.2.8. Thank you for reporting this.