From 52fa83e20ae8e806e8d6d2aac59f061e3c197d01 Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Mon, 13 Apr 2020 15:31:58 -0500 Subject: [PATCH] temp.sh: Initialize iterator correctly so fans step down The iterator was being set to '1' elsewhere in the script and the current speed was not saved correctly so when temps lowered the fan speed was not decreased. --- temp.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/temp.sh b/temp.sh index d2ee638..a59c67c 100755 --- a/temp.sh +++ b/temp.sh @@ -142,6 +142,7 @@ loop_cmds() { if [ "$new_spd" -ne "$cur_spd" ]; then cur_spd="$new_spd" set_speed + i=0 tmp="$old_s"; old_s="" for elem in $tmp; do if [ "$i" -ne "$fan" ]; then