fix interface selection in non-automatic mode

This commit is contained in:
Vladislav Zavjalov 2009-03-12 19:05:51 +03:00 committed by Sergey Bolshakov
parent 3c3b7111de
commit 75ae272058

View File

@ -579,14 +579,16 @@ static char * interface_select(void)
i++;
}
if (streq(get_auto_value("interface"), "")) {
if (interfaces[current_iface_auto]!=NULL)
return interfaces[current_iface_auto++];
else
unset_param(MODE_AUTOMATIC); /* we are in a fallback mode */
} else {
if (current_iface_auto++ > 1)
unset_param(MODE_AUTOMATIC); /* if interface was defined make only one try */
if (IS_AUTOMATIC) {
if (streq(get_auto_value("interface"), "")) {
if (interfaces[current_iface_auto]!=NULL)
return interfaces[current_iface_auto++];
else
unset_param(MODE_AUTOMATIC); /* we are in a fallback mode */
} else {
if (current_iface_auto++ > 1)
unset_param(MODE_AUTOMATIC); /* if interface was defined make only one try */
}
}
results = ask_from_list_comments_auto("Please choose the NET device to use for the installation.",