mirror of
				https://github.com/tigerblue77/Dell_iDRAC_fan_controller_Docker.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	Minor improvements
This commit is contained in:
		@@ -20,7 +20,7 @@ then
 | 
				
			|||||||
  readonly HEXADECIMAL_FAN_SPEED=$FAN_SPEED
 | 
					  readonly HEXADECIMAL_FAN_SPEED=$FAN_SPEED
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  readonly DECIMAL_FAN_SPEED=$FAN_SPEED
 | 
					  readonly DECIMAL_FAN_SPEED=$FAN_SPEED
 | 
				
			||||||
  readonly HEXADECIMAL_FAN_SPEED=$(printf '0x%02x' $FAN_SPEED)
 | 
					  readonly HEXADECIMAL_FAN_SPEED=$(convert_decimal_value_to_hexadecimal $FAN_SPEED)
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Check if the iDRAC host is set to 'local' or not then set the IDRAC_LOGIN_STRING accordingly
 | 
					# Check if the iDRAC host is set to 'local' or not then set the IDRAC_LOGIN_STRING accordingly
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,6 +14,15 @@ function apply_user_fan_control_profile () {
 | 
				
			|||||||
  CURRENT_FAN_CONTROL_PROFILE="User static fan control profile ($DECIMAL_FAN_SPEED%)"
 | 
					  CURRENT_FAN_CONTROL_PROFILE="User static fan control profile ($DECIMAL_FAN_SPEED%)"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Convert first parameter given ($DECIMAL_NUMBER) to hexadecimal
 | 
				
			||||||
 | 
					# Usage : convert_decimal_value_to_hexadecimal $DECIMAL_NUMBER
 | 
				
			||||||
 | 
					# Returns : hexadecimal value of DECIMAL_NUMBER
 | 
				
			||||||
 | 
					function convert_decimal_value_to_hexadecimal () {
 | 
				
			||||||
 | 
					  local DECIMAL_NUMBER=$1
 | 
				
			||||||
 | 
					  local HEXADECIMAL_NUMBER=$(printf '0x%02x' $DECIMAL_NUMBER)
 | 
				
			||||||
 | 
					  echo $HEXADECIMAL_NUMBER
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Retrieve temperature sensors data using ipmitool
 | 
					# Retrieve temperature sensors data using ipmitool
 | 
				
			||||||
# Usage : retrieve_temperatures $IS_EXHAUST_TEMPERATURE_SENSOR_PRESENT $IS_CPU2_TEMPERATURE_SENSOR_PRESENT
 | 
					# Usage : retrieve_temperatures $IS_EXHAUST_TEMPERATURE_SENSOR_PRESENT $IS_CPU2_TEMPERATURE_SENSOR_PRESENT
 | 
				
			||||||
function retrieve_temperatures () {
 | 
					function retrieve_temperatures () {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user