Setup Script - Make sure a management nic is selected

This commit is contained in:
Mike Reeves
2019-03-13 14:15:32 -04:00
parent bc09ee87b4
commit 20441df78e

View File

@@ -1172,12 +1172,13 @@ whiptail_management_nic() {
MNIC=$(whiptail --title "NIC Setup" --radiolist "Please select your management NIC" 20 78 12 ${NICS[@]} 3>&1 1>&2 2>&3 ) MNIC=$(whiptail --title "NIC Setup" --radiolist "Please select your management NIC" 20 78 12 ${NICS[@]} 3>&1 1>&2 2>&3 )
if [ -z "$MNIC" ]; then while [ -z "$MNIC" ]
do
MNIC=$(whiptail --title "NIC Setup" --radiolist "Please select your management NIC" 20 78 12 ${NICS[@]} 3>&1 1>&2 2>&3 ) MNIC=$(whiptail --title "NIC Setup" --radiolist "Please select your management NIC" 20 78 12 ${NICS[@]} 3>&1 1>&2 2>&3 )
else done
local exitstatus=$?
whiptail_check_exitstatus $exitstatus local exitstatus=$?
fi whiptail_check_exitstatus $exitstatus
} }