summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]cpufreq4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpufreq b/cpufreq
index 2a3e6ac..4aa15af 100644..100755
--- a/cpufreq
+++ b/cpufreq
@@ -1,10 +1,12 @@
#!/bin/bash
GOVERNOR=ondemand
-test -f /etc/sysconfig/cpufreq && . /etc/sysconfig/cpufreq
+[ -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
[ "x$MIN_FREQ" != "x" ] && [ -f $cpu/cpufreq/scaling_min_freq ] && echo $MIN_FREQ > $cpu/cpufreq/scaling_min_freq
done
+
+exit 0