Skip to content

Commit

Permalink
Minor fix forgotten in previous PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerblue77 committed Jan 28, 2024
1 parent 05aae19 commit cb29330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dell_iDRAC_fan_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ else
HEXADECIMAL_FAN_SPEED=$(printf '0x%02x' $FAN_SPEED)
fi

# Log main informations given to the container
get_Dell_server_model

# Log main informations
echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL"
echo "iDRAC/IPMI host: $IDRAC_HOST"

# Check if the iDRAC host is set to 'local' or not then set the IDRAC_LOGIN_STRING accordingly
if [[ $IDRAC_HOST == "local" ]]
then
get_Dell_server_model
echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL"

# Check that the Docker host IPMI device (the iDRAC) has been exposed to the Docker container
if [ ! -e "/dev/ipmi0" ] && [ ! -e "/dev/ipmi/0" ] && [ ! -e "/dev/ipmidev/0" ]; then
echo "/!\ Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0, check that you added the device to your Docker container or stop using local mode. Exiting." >&2
Expand Down

0 comments on commit cb29330

Please sign in to comment.