Bug 18021 - bugs in /etc/sysconfig/apm-scripts/apmscript
Summary: bugs in /etc/sysconfig/apm-scripts/apmscript
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: apmd
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-01 13:41 UTC by Adam Haile
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-10-01 21:51:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Haile 2000-10-01 13:41:08 UTC
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
---
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 21:46:54 UTC
Verified... Fixing now.

Comment 2 Bernhard Rosenkraenzer 2000-10-01 21:51:24 UTC
The LOCK_X test is already fixed in rawhide (-20); fixing cardctl...

Comment 3 Bernhard Rosenkraenzer 2000-10-01 21:56:19 UTC
Fixed in -21


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