commit | 15bcbd50aa28911cd73c665392697f819408c3a8 | [log] [tgz] |
---|---|---|
author | Sanjay Singh Rawat <sanjay.rawat@linaro.org> | Mon Jul 07 16:47:12 2014 +0200 |
committer | Sanjay Singh Rawat <sanjay.rawat@linaro.org> | Mon Jul 07 16:47:12 2014 +0200 |
tree | bc089b2484536495db542ba5b8702bd8ce543b25 | |
parent | e232318568c550f6d1a5f435e93de156985746bf [diff] [blame] |
thermal: skip if there are no cooling devices Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh index 1f1991f..0c836c5 100644 --- a/include/thermal_functions.sh +++ b/include/thermal_functions.sh
@@ -163,6 +163,10 @@ shift 1 devices=$(ls $THERMAL_PATH | grep "cooling_device['$MAX_CDEV']") + if [ "$devices" == "" ]; then + log_skip "no cooling devices" + return 0 + fi ALL_DEVICE=$devices for device in $devices; do