From f1002bc405e8fc2a18c8646300f30fcde92920f2 Mon Sep 17 00:00:00 2001 From: Scott Dawson Date: Tue, 1 Mar 2022 10:08:45 +1100 Subject: [PATCH] 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)