summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/network.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-02-07 20:18:21 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-02-07 20:18:21 +0000
commit13e551b64c1c3cd1c6a2025dd9328f908b9f3f39 (patch)
treeb61c877d6c93222ced93769aa9845a73d51d0fea /mdk-stage1/network.c
parent57f0c1abdba4b36f2b29477643873b606e17feb2 (diff)
downloaddrakx-backup-do-not-use-13e551b64c1c3cd1c6a2025dd9328f908b9f3f39.tar
drakx-backup-do-not-use-13e551b64c1c3cd1c6a2025dd9328f908b9f3f39.tar.gz
drakx-backup-do-not-use-13e551b64c1c3cd1c6a2025dd9328f908b9f3f39.tar.bz2
drakx-backup-do-not-use-13e551b64c1c3cd1c6a2025dd9328f908b9f3f39.tar.xz
drakx-backup-do-not-use-13e551b64c1c3cd1c6a2025dd9328f908b9f3f39.zip
- 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)
Diffstat (limited to 'mdk-stage1/network.c')
-rw-r--r--mdk-stage1/network.c10
1 files changed, 9 insertions, 1 deletions
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;