Fixing some if not true statements
This commit is contained in:
parent
ec364b009b
commit
88548f5a37
1 changed files with 2 additions and 9 deletions
11
functions.sh
11
functions.sh
|
|
@ -74,11 +74,7 @@ function retrieve_temperatures () {
|
||||||
|
|
||||||
function enable_third_party_PCIe_card_Dell_default_cooling_response () {
|
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
|
# 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_14_GEN
|
||||||
then
|
|
||||||
# 14 Gen server or newer
|
|
||||||
continue
|
|
||||||
else
|
|
||||||
# 13 Gen server or older
|
# 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
|
ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0xce 0x00 0x16 0x05 0x00 0x00 0x00 0x05 0x00 0x00 0x00 0x00 > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
@ -86,11 +82,8 @@ function enable_third_party_PCIe_card_Dell_default_cooling_response () {
|
||||||
|
|
||||||
function disable_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
|
# 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_14_GEN
|
||||||
then
|
then
|
||||||
# 14 Gen server or newer
|
|
||||||
continue
|
|
||||||
else
|
|
||||||
# 13 Gen server or older
|
# 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
|
ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0xce 0x00 0x16 0x05 0x00 0x00 0x00 0x05 0x00 0x01 0x00 0x00 > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue