From 9cd6d37b6ea8c3cf79ef12cb9eb246de6862315a Mon Sep 17 00:00:00 2001 From: tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Date: Thu, 14 Apr 2022 15:17:13 +0200 Subject: [PATCH] Throw away ipmitool command's output to avoid new line in Docker logs --- Dell_iDRAC_fan_controller.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dell_iDRAC_fan_controller.sh b/Dell_iDRAC_fan_controller.sh index 24a4f85..86ee073 100644 --- a/Dell_iDRAC_fan_controller.sh +++ b/Dell_iDRAC_fan_controller.sh @@ -2,13 +2,13 @@ # Define global functions apply_Dell_profile () { - ipmitool -I $LOGIN_STRING raw 0x30 0x30 0x01 0x01 + ipmitool -I $LOGIN_STRING raw 0x30 0x30 0x01 0x01 > /dev/null CURRENT_FAN_CONTROL_PROFILE="Dell default dynamic fan control profile" } apply_user_profile () { - ipmitool -I $LOGIN_STRING raw 0x30 0x30 0x01 0x00 - ipmitool -I $LOGIN_STRING raw 0x30 0x30 0x02 0xff $HEXADECIMAL_FAN_SPEED + ipmitool -I $LOGIN_STRING raw 0x30 0x30 0x01 0x00 > /dev/null + ipmitool -I $LOGIN_STRING raw 0x30 0x30 0x02 0xff $HEXADECIMAL_FAN_SPEED > /dev/null CURRENT_FAN_CONTROL_PROFILE="User static fan control profile ($DECIMAL_FAN_SPEED%)" } @@ -47,6 +47,7 @@ fi echo "Fan speed objective: $DECIMAL_FAN_SPEED%" echo "CPU temperature treshold: $CPU_TEMPERATURE_TRESHOLD°C" echo "Check interval: ${CHECK_INTERVAL}s" +echo "" readonly TABLE_HEADER_PRINT_INTERVAL=10 i=$TABLE_HEADER_PRINT_INTERVAL