From b8d73448212e8d470aa7d4a07a26d5865e73ffb3 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 22 Apr 2012 16:12:33 +0000 Subject: Let the script use the default governor without the config file. --- cpufreq | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpufreq b/cpufreq index a017877..2a3e6ac 100644 --- a/cpufreq +++ b/cpufreq @@ -1,6 +1,8 @@ #!/bin/bash +GOVERNOR=ondemand test -f /etc/sysconfig/cpufreq && . /etc/sysconfig/cpufreq + for cpu in /sys/devices/system/cpu/* ; do [ "x$GOVERNOR" != "x" ] && [ -f $cpu/cpufreq/scaling_governor ] && echo $GOVERNOR > $cpu/cpufreq/scaling_governor [ "x$MAX_FREQ" != "x" ] && [ -f $cpu/cpufreq/scaling_max_freq ] && echo $MAX_FREQ > $cpu/cpufreq/scaling_max_freq -- cgit v1.2.1