From 578871cf3fba59de10ba41d41466e6cf5d6e29a4 Mon Sep 17 00:00:00 2001 From: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Date: Sun, 28 Jan 2024 22:18:36 +0000 Subject: [PATCH] Added a platform check at container startup --- Dell_iDRAC_fan_controller.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dell_iDRAC_fan_controller.sh b/Dell_iDRAC_fan_controller.sh index 43a2795..393719a 100644 --- a/Dell_iDRAC_fan_controller.sh +++ b/Dell_iDRAC_fan_controller.sh @@ -117,6 +117,12 @@ fi get_Dell_server_model +if [[ ! $SERVER_MANUFACTURER == "DELL" ]] +then + echo "/!\ Your server isn't a Dell product. Exiting." >&2 + exit 1 +fi + # Log main informations echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL" echo "iDRAC/IPMI host: $IDRAC_HOST"