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++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (streq(get_auto_value("interface"), "")) {
|
if (IS_AUTOMATIC) {
|
||||||
if (interfaces[current_iface_auto]!=NULL)
|
if (streq(get_auto_value("interface"), "")) {
|
||||||
return interfaces[current_iface_auto++];
|
if (interfaces[current_iface_auto]!=NULL)
|
||||||
else
|
return interfaces[current_iface_auto++];
|
||||||
unset_param(MODE_AUTOMATIC); /* we are in a fallback mode */
|
else
|
||||||
} else {
|
unset_param(MODE_AUTOMATIC); /* we are in a fallback mode */
|
||||||
if (current_iface_auto++ > 1)
|
} else {
|
||||||
unset_param(MODE_AUTOMATIC); /* if interface was defined make only one try */
|
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.",
|
results = ask_from_list_comments_auto("Please choose the NET device to use for the installation.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user