Bug 120921 - gnome-panel %post scriptlet bug
Summary: gnome-panel %post scriptlet bug
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-panel
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mark McLoughlin
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-15 10:47 UTC by Tim Waugh
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 2.6.0-7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-15 12:22:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Waugh 2004-04-15 10:47:37 UTC
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 12:22:33 UTC
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.