From 3aff3ac7e4757b44276f83d429c6ed8e028ca2d7 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 3 Jun 2021 11:00:20 -0400 Subject: [PATCH] Change logic to check for unmanaged nics Resolves issue mentioned in #4327 --- setup/so-whiptail | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/setup/so-whiptail b/setup/so-whiptail index 258a7b0ac..cbf74680f 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -1640,13 +1640,15 @@ whiptail_sensor_nics() { IFS=' ' read -ra BNICS <<< "$BNICS" for bond_nic in "${BNICS[@]}"; do - if [[ "${nmcli_dev_status_list}" =~ $bond_nic\:unmanaged ]]; then - whiptail \ - --title "$whiptail_title" \ - --msgbox "$bond_nic is unmanaged by Network Manager. Please remove it from other network management tools then re-run setup." \ - 8 75 - exit - fi + for dev_status in "${nmcli_dev_status_list[@]}"; do + if [[ $dev_status == "${bond_nic}:unmanaged" ]]; then + whiptail \ + --title "$whiptail_title" \ + --msgbox "$bond_nic is unmanaged by Network Manager. Please remove it from other network management tools then re-run setup." \ + 8 75 + exit + fi + done done }