Bug 120921

Summary: gnome-panel %post scriptlet bug
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: gnome-panelAssignee: Mark McLoughlin <markmc>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.0-7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-15 12:22:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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