diff options
author | Colin Guthrie <colin@mageia.org> | 2012-04-22 16:32:19 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-04-22 16:32:19 +0000 |
commit | 2dc6be4c0a040db699aaf981a104ad6bd84fad64 (patch) | |
tree | d93d70255698ecfd16122764c0807636ced332ec | |
parent | dba67991348da2d86e85b0888b7498b41e26a1d0 (diff) | |
download | cpufreq-2dc6be4c0a040db699aaf981a104ad6bd84fad64.tar cpufreq-2dc6be4c0a040db699aaf981a104ad6bd84fad64.tar.gz cpufreq-2dc6be4c0a040db699aaf981a104ad6bd84fad64.tar.bz2 cpufreq-2dc6be4c0a040db699aaf981a104ad6bd84fad64.tar.xz cpufreq-2dc6be4c0a040db699aaf981a104ad6bd84fad64.zip |
Also use the same syntax throughout for file tests.
Make executable.
-rwxr-xr-x[-rw-r--r--] | cpufreq | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |