From f1002bc405e8fc2a18c8646300f30fcde92920f2 Mon Sep 17 00:00:00 2001 From: Scott Dawson Date: Tue, 1 Mar 2022 10:08:45 +1100 Subject: [PATCH 1/3] Allow manual override of max temp via env var --- check-temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-temp.sh b/check-temp.sh index 6a5babf..adcb955 100755 --- a/check-temp.sh +++ b/check-temp.sh @@ -3,7 +3,7 @@ IPMIUSER=`cat /user.txt` IPMIPW=`cat /pw.txt` FANSPEED=`cat /fanspeed.txt` -MAXTEMP=32 +MAXTEMP=${MAXTEMP:-32} TEMP=$(ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW sdr type temperature |grep Inlet |grep degrees |grep -Po '\d{2}' | tail -1) From f191669948c55beb63a4b083925ed3c0cb03f779 Mon Sep 17 00:00:00 2001 From: Scott Dawson Date: Tue, 1 Mar 2022 10:17:39 +1100 Subject: [PATCH 2/3] Update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d835973..8a5b51b 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,5 @@ services: - IDRAC_USER=root # set to your IPMI username - IDRAC_PW=calvin # set to your IPMI password - FANSPEED=0x05 # set to the hex value you want to set the fans to (from 0 to 100) + - MAXTEMP=32 # set the maximum temperature (in celcius) before dynamic fan control kicks back in, optional, defaults to 32 ``` From 0a045b67a573e334797b61197e52316ec3c77d6f Mon Sep 17 00:00:00 2001 From: Scott Dawson Date: Tue, 12 Apr 2022 08:45:29 +1000 Subject: [PATCH 3/3] Add max temp to start up script --- check-temp.sh | 3 +-- startup.sh | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/check-temp.sh b/check-temp.sh index adcb955..0c95d36 100755 --- a/check-temp.sh +++ b/check-temp.sh @@ -2,8 +2,7 @@ IPMIHOST=`cat /host.txt` IPMIUSER=`cat /user.txt` IPMIPW=`cat /pw.txt` FANSPEED=`cat /fanspeed.txt` - -MAXTEMP=${MAXTEMP:-32} +MAXTEMP=`cat /maxtemp.txt` TEMP=$(ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW sdr type temperature |grep Inlet |grep degrees |grep -Po '\d{2}' | tail -1) diff --git a/startup.sh b/startup.sh index 5f6b85a..b0cd198 100644 --- a/startup.sh +++ b/startup.sh @@ -2,8 +2,10 @@ echo $IDRAC_HOST >> /host.txt echo $IDRAC_USER >> /user.txt echo $IDRAC_PW >> /pw.txt echo $FANSPEED >> /fanspeed.txt +echo ${MAXTEMP:-32} >> /maxtemp.txt echo "Host: `cat /host.txt`" echo "User: `cat /user.txt`" echo "PW: `cat /pw.txt`" echo "Fan speed `cat /fanspeed.txt`" +echo "Max temp: `cat /maxtemp.txt`"