Nettoyage du code et refonte complète du README
- Suppression du code mort et commenté (fonctions inutiles) - Correction du bug wait $SLEEP -> wait $SLEEP_PROCESS_PID - Suppression des fichiers de sauvegarde .default - Refonte complète du README en français avec : * Documentation des nouveaux paramètres de contrôle dynamique * Exemples Docker/docker-compose mis à jour * Section dépannage adaptée au système de seuils * Logique de fonctionnement détaillée 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
18
functions.sh
18
functions.sh
@@ -1,5 +1,3 @@
|
||||
# Define global functions
|
||||
|
||||
# This function applies Dell's default dynamic fan control profile
|
||||
function apply_Dell_fan_control_profile () {
|
||||
# Use ipmitool to send the raw command to set fan control to Dell default
|
||||
@@ -79,22 +77,6 @@ function disable_third_party_PCIe_card_Dell_default_cooling_response () {
|
||||
ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0xce 0x00 0x16 0x05 0x00 0x00 0x00 0x05 0x00 0x01 0x00 0x00 > /dev/null
|
||||
}
|
||||
|
||||
# Returns :
|
||||
# - 0 if third-party PCIe card Dell default cooling response is currently DISABLED
|
||||
# - 1 if third-party PCIe card Dell default cooling response is currently ENABLED
|
||||
# - 2 if the current status returned by ipmitool command output is unexpected
|
||||
# function is_third_party_PCIe_card_Dell_default_cooling_response_disabled() {
|
||||
# THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE=$(ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0xce 0x01 0x16 0x05 0x00 0x00 0x00)
|
||||
|
||||
# if [ "$THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE" == "16 05 00 00 00 05 00 01 00 00" ]; then
|
||||
# return 0
|
||||
# elif [ "$THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE" == "16 05 00 00 00 05 00 00 00 00" ]; then
|
||||
# return 1
|
||||
# else
|
||||
# echo "Unexpected output: $THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE" >&2
|
||||
# return 2
|
||||
# fi
|
||||
# }
|
||||
|
||||
# Prepare traps in case of container exit
|
||||
function gracefull_exit () {
|
||||
|
||||
Reference in New Issue
Block a user