diff options
Diffstat (limited to 'include/thermal_functions.sh')
-rw-r--r-- | include/thermal_functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh index eaf378b..bfc6620 100644 --- a/include/thermal_functions.sh +++ b/include/thermal_functions.sh @@ -185,7 +185,7 @@ check_scaling_freq() { local flag=0 for cpu in $cpus; do - if [ $before_freq_list[$index] -ne $after_freq_list[$index] ] ; then + if [ ${before_freq_list[$index]} -ne ${after_freq_list[$index]} ] ; then flag=1 fi index=$((index + 1)) @@ -237,7 +237,7 @@ enable_all_thermal_zones() { local th_zones=$(ls $THERMAL_PATH | grep "thermal_zone['$MAX_ZONE']") for zone in $th_zones; do - echo $mode_list[$index] > $THERMAL_PATH/$zone/mode + echo ${mode_list[$index]} > $THERMAL_PATH/$zone/mode index=$((index + 1)) done return 0 |