Update fan_control.sh

Change > to -ge because of issue when inlet temp drops to single digit.
This commit is contained in:
Simon Brezovnik 2023-06-26 08:40:20 +08:00 committed by GitHub
parent 53e27b8c07
commit ea0ff2990a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ echo "--> iDRAC IP Address: $IDRAC_IP"
echo "--> Current Inlet Temp: $T"
# If ambient temperature is above 35deg C enable dynamic control and exit, if below set manual control.
if [[ $T > $TEMP_THRESHOLD ]]
if [[ $T -ge $TEMP_THRESHOLD ]]
then
echo "--> Temperature is above 35deg C"
echo "--> Enabled dynamic fan control"