bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Displaying boot file name after calling bootp


From: Thierry Laronde
Subject: [PATCH] Displaying boot file name after calling bootp
Date: Sat, 24 Feb 2001 22:32:24 +0100
User-agent: Mutt/1.0.1i

Hello,

The information about the name of the boot file is, for me, needed, but
the place where I have put the print call is perhaps arguable if
`print_network_configuration' keeps its name. The print call could be
put after the call of `print_network_configuration' in `bootp_func'
(stage2/builtins.c), or, IMHO better, `print_network_configuration'
should be renamed `print_bootp_informations'.

You will see,

Cheers.

Changelog entry :

        * netboot/main.c (print_network_configuration): tftp doesn't allow 
        "browsing" so print information about the boot file as specified by
        the bootp/dhcp server
        

--- grub/netboot/main.c Sun Jan 14 20:52:12 2001
+++ grub/netboot/main.c Sat Feb 24 22:06:26 2001
@@ -175,6 +175,9 @@
                        
       grub_printf ("Address: %s    Netmask: %s\nServer: %s    Gateway: %s\n",
                    me, my_mask, server, gw);
+      grub_printf ("Boot file :0 %s\n",
+                 (BOOTP_DATA_ADDR->bootp_reply.bp_file[0])?
+                   BOOTP_DATA_ADDR->bootp_reply.bp_file : "none given");
     }
 }
 
-- 
Thierry LARONDE <address@hidden>
10, rue du Bel Air, 74000 ANNECY - FRANCE/ Tel : 33.(0)4.50.67.46.61
/home du SDF (Site Debian Francophone) : http://sdf.polynum.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]