2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-02 11:37:07 +00:00

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.
This commit is contained in:
Obihörnchen 2022-03-02 17:10:45 +01:00 committed by GitHub
parent 2f0f8ddfba
commit f6923bd654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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