From f6923bd65469814519bbf9bb62313a29191af501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Obih=C3=B6rnchen?= Date: Wed, 2 Mar 2022 17:10:45 +0100 Subject: [PATCH] Fix nicutils.sh for non english locales Using a non english locale breaks the is_connection_activate_intime() function because nmcli outputs the connection state localized. --- xCAT/postscripts/nicutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/nicutils.sh b/xCAT/postscripts/nicutils.sh index 7efc16fd3..c15bf089f 100755 --- a/xCAT/postscripts/nicutils.sh +++ b/xCAT/postscripts/nicutils.sh @@ -1860,7 +1860,7 @@ function is_connection_activate_intime { fi i=0 while [ $i -lt "$time_out" ]; do - con_state=$($nmcli con show $con_name | grep -i state| awk '{print $2}'); + con_state=$(LC_ALL=C $nmcli con show $con_name | grep -i state| awk '{print $2}'); if [ ! -z "$con_state" -a "$con_state" = "activated" ]; then break fi