Renamed variable

This commit is contained in:
Tigerblue77 2024-11-10 20:28:27 +01:00
parent fa385ab8e8
commit 86155f19cf
3 changed files with 6 additions and 6 deletions

View file

@ -38,7 +38,7 @@ function retrieve_temperatures () {
# Parse CPU data
local CPU_DATA=$(echo "$DATA" | grep "3\." | grep -Po '\d{2}')
if $DELL_14_GEN
if $DELL_POWEREDGE_GEN_14_OR_NEWER
then
# 14 Gen server or newer
CPU1_TEMPERATURE=$(echo $CPU_DATA | awk '{print $2;}')
@ -48,7 +48,7 @@ function retrieve_temperatures () {
fi
if $IS_CPU2_TEMPERATURE_SENSOR_PRESENT
then
if $DELL_14_GEN
if $DELL_POWEREDGE_GEN_14_OR_NEWER
then
# 14 Gen server or newer
CPU2_TEMPERATURE=$(echo $CPU_DATA | awk '{print $4;}')
@ -74,7 +74,7 @@ function retrieve_temperatures () {
function enable_third_party_PCIe_card_Dell_default_cooling_response () {
# We could check the current cooling response before applying but it's not very useful so let's skip the test and apply directly
if ! $DELL_14_GEN
if ! $DELL_POWEREDGE_GEN_14_OR_NEWER
then
# 13 Gen server or older
ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0xce 0x00 0x16 0x05 0x00 0x00 0x00 0x05 0x00 0x00 0x00 0x00 > /dev/null
@ -83,7 +83,7 @@ function enable_third_party_PCIe_card_Dell_default_cooling_response () {
function disable_third_party_PCIe_card_Dell_default_cooling_response () {
# We could check the current cooling response before applying but it's not very useful so let's skip the test and apply directly
if ! $DELL_14_GEN
if ! $DELL_POWEREDGE_GEN_14_OR_NEWER
then
# 13 Gen server or older
ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0xce 0x00 0x16 0x05 0x00 0x00 0x00 0x05 0x00 0x01 0x00 0x00 > /dev/null