Bug 18021 - bugs in /etc/sysconfig/apm-scripts/apmscript
bugs in /etc/sysconfig/apm-scripts/apmscript
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: apmd (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-10-01 09:41 EDT by Adam Haile
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-10-01 17:51:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Haile 2000-10-01 09:41:08 EDT
There are two bugs in /etc/sysconfig/apm-scripts/apmscript:

1. apmscript calls a non-existent /usr/sbin/cardctl, rather than the real
/sbin/cardctl.  As a result, PCMCIA cards are never suspended, even if the
user sets PCMCIARESTART to 'yes'.

2. The test for the LOCK_X reads '"x$LOCK_X" != "x0"'.  This has the
awkward result that if the variable is unset -- as it is in the default
/etc/sysconfig/apmd -- then it has the same effect as if it were set and
enabled.  Why isn't this a simple '"$LOCK_X" = "yes"' like all other binary
on/off options?

One additional note: my network card (Xircom IIps Ethernet PS-CE2-10) fails
to come back up after a suspend even if 'cardctl suspend' is run before and
'cardctl resume' after.  To work, the card needs the harsher 'cardctl
eject' and 'cardctl insert'.  On my system, I added an option PCMCIAEJECT
to /etc/sysconfig/apmd and lines in apmscript in the suspend and resume
sections to run these commands.

Thanks for your work.  Yours,
	Adam Haile
	adam.haile@duke.edu
---
Additional info, in case it happens to be useful:

Machine: NEC Versa SX / 14.1" TFT / PII266 / 128M RAM / 12G HD / DVD-ROM /
LS-120

[aah@eliaha aah]$ uname -a
Linux eliaha.duke.edu 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686
unknown
[aah@eliaha aah]$ cat /etc/issue

Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i686

[aah@eliaha aah]$ rpm -q apmd
apmd-3.0final-18
[aah@eliaha aah]$ rpm -q kernel-pcmcia-cs
kernel-pcmcia-cs-2.2.16-22
[aah@eliaha aah]$
Comment 1 Bernhard Rosenkraenzer 2000-10-01 17:46:54 EDT
Verified... Fixing now.
Comment 2 Bernhard Rosenkraenzer 2000-10-01 17:51:24 EDT
The LOCK_X test is already fixed in rawhide (-20); fixing cardctl...
Comment 3 Bernhard Rosenkraenzer 2000-10-01 17:56:19 EDT
Fixed in -21

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