aboutsummaryrefslogtreecommitdiff
path: root/governor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'governor.sh')
-rwxr-xr-xgovernor.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/governor.sh b/governor.sh
index a82a6d5..2d03c80 100755
--- a/governor.sh
+++ b/governor.sh
@@ -20,6 +20,8 @@ find_gov_directory()
echo "$GLOBAL_CPUFREQ/$2"
elif [ -d $CPU_PATH/$1/cpufreq -a -d $CPU_PATH/$1/cpufreq/$2 ]; then
echo "$CPU_PATH/$1/cpufreq/$2"
+ else
+ echo "INVALID"
fi
}
@@ -57,7 +59,7 @@ switch_show_governor()
# show governor files
local govpath=$(find_gov_directory $1 $2)
- if [ ! -z $govpath ]; then
+ if [ $govpath != "INVALID" ]; then
__read_cpufreq_files $govpath
fi
}