From ea0ff2990a54f8ebe6c7ce0cdab03d70f6167e35 Mon Sep 17 00:00:00 2001 From: Simon Brezovnik <32946493+brezlord@users.noreply.github.com> Date: Mon, 26 Jun 2023 08:40:20 +0800 Subject: [PATCH] Update fan_control.sh Change > to -ge because of issue when inlet temp drops to single digit. --- fan_control.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fan_control.sh b/fan_control.sh index e743a8f..4fc554b 100644 --- a/fan_control.sh +++ b/fan_control.sh @@ -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"