fix interface selection in non-automatic mode
This commit is contained in:
parent
3c3b7111de
commit
75ae272058
@ -579,6 +579,7 @@ static char * interface_select(void)
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IS_AUTOMATIC) {
|
||||||
if (streq(get_auto_value("interface"), "")) {
|
if (streq(get_auto_value("interface"), "")) {
|
||||||
if (interfaces[current_iface_auto]!=NULL)
|
if (interfaces[current_iface_auto]!=NULL)
|
||||||
return interfaces[current_iface_auto++];
|
return interfaces[current_iface_auto++];
|
||||||
@ -588,6 +589,7 @@ static char * interface_select(void)
|
|||||||
if (current_iface_auto++ > 1)
|
if (current_iface_auto++ > 1)
|
||||||
unset_param(MODE_AUTOMATIC); /* if interface was defined make only one try */
|
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.",
|
results = ask_from_list_comments_auto("Please choose the NET device to use for the installation.",
|
||||||
interfaces, descriptions, &choice, "interface", interfaces);
|
interfaces, descriptions, &choice, "interface", interfaces);
|
||||||
|
Loading…
Reference in New Issue
Block a user