diff options
author | hongbo.zhang <hongbo.zhang@linaro.com> | 2012-11-22 18:20:24 +0800 |
---|---|---|
committer | hongbo.zhang <hongbo.zhang@linaro.com> | 2012-11-28 17:49:39 +0800 |
commit | 2a303c96fe8759af94f2dfac293e064cca864ca3 (patch) | |
tree | 9cdf344e75473bddddb5b5547dcd65ce2f30d880 | |
parent | b6fdbda76431a9368dcbd61ec87790357d5a8529 (diff) |
thermal: bug fix of check_valid_temp function
the greater-than symbol ">" in if state isn't valid and a file named "0" will
be created in this case, "-gt" should be used instead.
Signed-off-by: hongbo.zhang <hongbo.zhang@linaro.com>
-rw-r--r-- | include/thermal_functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh index 5b60698..f385ec1 100644 --- a/include/thermal_functions.sh +++ b/include/thermal_functions.sh @@ -42,7 +42,7 @@ check_valid_temp() { local descr="'$zone_name'/'$file' ='$temp_val'" log_begin "checking $descr" - if [ $temp_val > 0 ]; then + if [ $temp_val -gt 0 ]; then log_end "pass" return 0 fi |