From 13e551b64c1c3cd1c6a2025dd9328f908b9f3f39 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 7 Feb 2001 20:18:21 +0000 Subject: - use description of network cards when you have to select between interfaces; has accuracy even in the case of multiple interface for a given kernel module - write down a small "shell" to change parameters on the fly (needs compile option SPAWN_INTERACTIVE) --- mdk-stage1/network.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/network.c') diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 84eee2c8e..f961df17f 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -502,6 +502,7 @@ static enum return_type bringup_networking(struct interface_info * intf) static char * interface_select(void) { char ** interfaces, ** ptr; + char * descriptions[50]; char * choice; int i, count = 0; enum return_type results; @@ -525,7 +526,14 @@ static char * interface_select(void) if (count == 1) return *interfaces; - results = ask_from_list_auto("Please choose the NET device to use for the installation.", interfaces, &choice, "interface", interfaces); + i = 0; + while (interfaces[i]) { + descriptions[i] = get_net_intf_description(interfaces[i]); + i++; + } + + results = ask_from_list_comments_auto("Please choose the NET device to use for the installation.", + interfaces, descriptions, &choice, "interface", interfaces); if (results != RETURN_OK) return NULL; -- cgit v1.2.1