From 483f3109eb4731bc86a227d62b275bb1ee19f0cd Mon Sep 17 00:00:00 2001 From: Alex Hyett Date: Tue, 23 Apr 2024 10:01:48 +0100 Subject: [PATCH] Turn off front fan --- casefan.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/casefan.sh b/casefan.sh index 1bb92b9..3a00872 100644 --- a/casefan.sh +++ b/casefan.sh @@ -2,6 +2,7 @@ # Inspired by https://github.com/kmwoley/unRAID-Tools/blob/master/unraid_array_fan.sh # User Defined variables +FAN_OFF_PWM=0 FAN_LOW_PWM=90 FAN_HIGH_PWM=255 FAN_START_PWM=100 # technically 90 but setting higher to ensure fan is running @@ -30,7 +31,7 @@ MOTHERBOARD_TEMP=`sensors acpitz-acpi-0 | grep "MB Temp" | grep -o '[0-9]*' | he echo "MB Temp: "$MOTHERBOARD_TEMP"" if [ "$MOTHERBOARD_TEMP" -le "$LOW_TEMP" ]; then - echo $FAN_LOW_PWM > $FRONT_FAN + echo $FAN_OFF_PWM > $FRONT_FAN # Turn off front fan, as hard drive fan already on. echo $FAN_LOW_PWM > $REAR_FAN OUTPUT+="Setting pwm to: "$FAN_LOW_PWM$'\n' elif [ "$MOTHERBOARD_TEMP" -ge "$HIGH_TEMP" ]; then