mirror of
https://github.com/tigerblue77/Dell_iDRAC_fan_controller_Docker.git
synced 2025-11-03 13:33:19 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user