fix interface selection in non-automatic mode
This commit is contained in:
parent
3c3b7111de
commit
75ae272058
18
network.c
18
network.c
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user