Bug 120921 - gnome-panel %post scriptlet bug
gnome-panel %post scriptlet bug
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gnome-panel (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mark McLoughlin
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-04-15 06:47 EDT by Tim Waugh
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 2.6.0-7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-04-15 08:22:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2004-04-15 06:47:37 EDT
Description of problem:
The %post scriptlet has:

#
# Need to figure out what to do here with ACPI when APM is off
#
apm=false
if [ -f /proc/apm ]; then   # Battery present if top bits are unset
  flag=$(cat $1 | cut -d ' ' -f 6 | sed 's/0x\([0-9a-f]\)[0-9a-f]/\1/')
  if [ "$flag" == "0" ]; then
    apm=true
  fi
fi

The 'flag=' line should probably start:

  flag=$(cat /proc/apm | ...

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

   6:gnome-panel   ########################################### [ 17%]
cat: 2: No such file or directory
Comment 1 Mark McLoughlin 2004-04-15 08:22:33 EDT
Nice catch - fixed in gnome-panel-2.6.0-7

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