rpms/cpuspeed/devel cpuspeed.init,1.36,1.37
Jarod Wilson (jwilson)
fedora-extras-commits at redhat.com
Tue Feb 26 03:21:23 UTC 2008
Author: jwilson
Update of /cvs/pkgs/rpms/cpuspeed/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8877
Modified Files:
cpuspeed.init
Log Message:
Minor optimization from Håkon Løvdal
Index: cpuspeed.init
===================================================================
RCS file: /cvs/pkgs/rpms/cpuspeed/devel/cpuspeed.init,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- cpuspeed.init 14 Feb 2008 22:37:58 -0000 1.36
+++ cpuspeed.init 26 Feb 2008 03:20:43 -0000 1.37
@@ -112,8 +112,8 @@
start() {
if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
if ! some_file_exist $testpat ; then
- cpu_vendor=$(grep vendor_id /proc/cpuinfo | awk '{print $3}' | tail -n 1)
- cpu_family=$(grep "cpu family" /proc/cpuinfo | awk '{print $4}' | tail -n 1)
+ cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
+ cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
# Attempt to load scaling_driver if not loaded
# but it is configured
if [ -n "$DRIVER" ]; then
More information about the fedora-extras-commits
mailing list