Bug 182691

Summary: bad shell code in /etc/init.d/cpuspeed
Product: [Fedora] Fedora Reporter: Alexandre Oliva <oliva>
Component: cpuspeedAssignee: Dave Jones <davej>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-24 03:15:43 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:
Attachments:
Description Flags
Patch that fixes the bug none

Description Alexandre Oliva 2006-02-24 02:04:43 UTC
Description of problem:
cpuspeed prints errors on cpufreq scaling-capable SMP systems.  The attached
patch fixes the bad shell idiom used there, using an ugly idiom instead :-)

Version-Release number of selected component (if applicable):
cpuspeed-1.2.1-1.32
kernel-2.6.15-1.1975_FC5

How reproducible:
Every time

Steps to Reproduce:
1.service cpuspeed start

Actual results:
/etc/init.d/cpuspeed: line 22: [:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver: binary operator expected
Starting cpuspeed:                                         [  OK  ]

Expected results:
No such shell complaint

Additional info:

Comment 1 Alexandre Oliva 2006-02-24 02:04:44 UTC
Created attachment 125154 [details]
Patch that fixes the bug

Comment 2 Dave Jones 2006-02-24 03:15:43 UTC
thanks, applied.
(And yes, ewwww!)