Add new parameter DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE_ON_EXIT to allow users to specify whether or not they want the Dell Third-Party PCIe Card Default Cooling Response Logic disabled on exit.

This commit is contained in:
Ryan
2024-11-10 19:52:12 +01:00
committed by Tigerblue77
parent f84367985a
commit 8d56ba7211
3 changed files with 13 additions and 1 deletions

View File

@@ -88,7 +88,13 @@ function disable_third_party_PCIe_card_Dell_default_cooling_response () {
# Prepare traps in case of container exit
function gracefull_exit () {
apply_Dell_fan_control_profile
enable_third_party_PCIe_card_Dell_default_cooling_response
# Reset third-party PCIe card cooling response to Dell default depending on the user's choice at startup
if ! $KEEP_THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE_STATE_ON_EXIT
then
enable_third_party_PCIe_card_Dell_default_cooling_response
fi
echo "/!\ WARNING /!\ Container stopped, Dell default dynamic fan control profile applied for safety."
exit 0
}