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:
parent
f84367985a
commit
8d56ba7211
3 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue