diff --git a/README.md b/README.md index c915a32..7d8f27a 100644 --- a/README.md +++ b/README.md @@ -38,4 +38,5 @@ services: - IDRAC_USER=root # set to your IPMI username - IDRAC_PW=calvin # set to your IPMI password - FAN_SPEED=0x05 # set to the decimal or hexadecimal 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 ``` diff --git a/check-temp.sh b/check-temp.sh index f32d4bf..8b07b68 100755 --- a/check-temp.sh +++ b/check-temp.sh @@ -5,9 +5,9 @@ IPMIUSER=`cat /user.txt` IPMIPW=`cat /pw.txt` DECIMAL_FAN_SPEED=`cat /decimal_fan_speed.txt` HEXADECIMAL_FAN_SPEED=`cat /hexadecimal_fan_speed.txt` - MAXTEMP=32 + if [[ $IPMIHOST == "local" ]] then LOGIN_STRING='open' diff --git a/startup.sh b/startup.sh index 91aebaf..6278b8f 100644 --- a/startup.sh +++ b/startup.sh @@ -3,6 +3,7 @@ echo $IDRAC_HOST >> /host.txt echo $IDRAC_USER >> /user.txt echo $IDRAC_PW >> /pw.txt +echo ${MAXTEMP:-32} >> /maxtemp.txt if [[ $FAN_SPEED == 0x* ]] then @@ -23,3 +24,4 @@ then echo "PW: `cat /pw.txt`" fi echo "Fan speed objective: `cat /decimal_fan_speed.txt`%" +echo "Max temp: `cat /maxtemp.txt`"