Allow manual override of max temp via env var

This commit is contained in:
Scott Dawson 2022-03-01 10:08:45 +11:00
parent 885e899222
commit f1002bc405
No known key found for this signature in database
GPG Key ID: AB32782F3BB2A589

View File

@ -3,7 +3,7 @@ IPMIUSER=`cat /user.txt`
IPMIPW=`cat /pw.txt` IPMIPW=`cat /pw.txt`
FANSPEED=`cat /fanspeed.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) TEMP=$(ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW sdr type temperature |grep Inlet |grep degrees |grep -Po '\d{2}' | tail -1)