From 2dc6be4c0a040db699aaf981a104ad6bd84fad64 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 22 Apr 2012 16:32:19 +0000 Subject: Restore the exit 0 which is needed afterall due to the inline file tests. Also use the same syntax throughout for file tests. Make executable. --- cpufreq | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 cpufreq diff --git a/cpufreq b/cpufreq old mode 100644 new mode 100755 index 2a3e6ac..4aa15af --- 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 -- cgit v1.2.1