Bug 85105 - /etc/init.d/pcmcia returns wrong exit code
Summary: /etc/init.d/pcmcia returns wrong exit code
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel-pcmcia-cs
Version: 9
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-02-25 19:08 UTC by Cengiz Alaettinoglu
Modified: 2015-01-04 22:02 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-11-25 08:30:57 UTC
Embargoed:


Attachments (Terms of Use)

Description Cengiz Alaettinoglu 2003-02-25 19:08:58 UTC
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
RESTORESERVICES="named pcmcia"

Cengiz


Version-Release number of selected component (if applicable):


How reproducible:
Always

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.

Additional info:

removing rc. prefix from the last line of /etc/init.d/pcmcia solves this problem.


Note You need to log in before you can comment on or make changes to this bug.