Setup Script - Make sure a management nic is selected

This commit is contained in:
Mike Reeves
2019-03-13 14:08:38 -04:00
parent e193ec797b
commit bc09ee87b4

View File

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