Skip to content

Commit

Permalink
Added pre check
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerblue77 committed Dec 29, 2024
1 parent 8e684c4 commit bc401ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dell_iDRAC_fan_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if [ -z "$HIGH_FAN_SPEED" ] || [ -z "$CPU_TEMPERATURE_THRESHOLD_FOR_FAN_SPEED_IN
# We define these variables to the same values than user fan control profile
readonly HIGH_FAN_SPEED=$FAN_SPEED
readonly CPU_TEMPERATURE_THRESHOLD_FOR_FAN_SPEED_INTERPOLATION=$CPU_TEMPERATURE_THRESHOLD
elif [[ "$FAN_SPEED" -gt "$HIGH_FAN_SPEED" ]]; then
echo 'Error : $FAN_SPEED have to be less or equal to $HIGH_FAN_SPEED. Exiting.'
exit 1
else
readonly FAN_SPEED_INTERPOLATION_ENABLED=true
fi
Expand Down

0 comments on commit bc401ed

Please sign in to comment.