From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030206
Description of problem:
the last line
case $0 in *rc.pcmcia) exit $EXITCODE ;; esac
ought to be
case $0 in *pcmcia) exit $EXITCODE ;; esac
since there is no rc. prefix in the name of the scripts in /etc/init.d. This
creates problems if for example pcmcia is added to /etc/sysconfig/apmd's
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add RESTORESERVICES="named pcmcia" to /etc/sysconfig/apmd
2. /etc/init.d/apmd restart
3. /etc/init.d/pcmcia stop
4. suspend the laptop and then resume
Actual Results: pcmcia is turned on on resume.
Expected Results: pcmcia should be off since it was not on before going to suspend.
removing rc. prefix from the last line of /etc/init.d/pcmcia solves this problem.