diff options
Diffstat (limited to 'include/thermal_functions.sh')
-rw-r--r-- | include/thermal_functions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ for_each_cooling_device() { 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 |