From a6a42ea881e803995a3103b0af95f75570db9627 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Sun, 1 Mar 2009 11:15:59 +0100 Subject: hdt: Bump version 0.2.1 Adding pxe menu in menu mode --- com32/hdt/hdt-menu.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'com32/hdt/hdt-menu.c') diff --git a/com32/hdt/hdt-menu.c b/com32/hdt/hdt-menu.c index 65129003..0c5bfe58 100644 --- a/com32/hdt/hdt-menu.c +++ b/com32/hdt/hdt-menu.c @@ -140,6 +140,7 @@ void compute_submenus(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware) compute_disks(hdt_menu,hardware->disk_info); #ifdef WITH_PCI compute_PCI(hdt_menu,hardware); + compute_PXE(&(hdt_menu->pxe_menu),hardware); compute_kernel(&(hdt_menu->kernel_menu),hardware); #endif compute_syslinuxmenu(&(hdt_menu->syslinux_menu)); @@ -205,9 +206,15 @@ if (hardware->is_dmi_valid) { } add_item("","",OPT_SEP,"",0); #ifdef WITH_PCI - add_item("ernel Modules","Kernel Modules Menu",OPT_SUBMENU,NULL,hdt_menu->kernel_menu.menu); - hdt_menu->main_menu.items_count++; + if (hardware->modules_pcimap_return_code != -ENOMODULESPCIMAP) { + add_item("ernel Modules","Kernel Modules Menu",OPT_SUBMENU,NULL,hdt_menu->kernel_menu.menu); + hdt_menu->main_menu.items_count++; + } #endif + if (hardware->is_pxe_valid == true) { + add_item("PE","PXE Information Menu",OPT_SUBMENU,NULL,hdt_menu->pxe_menu.menu); + hdt_menu->main_menu.items_count++; + } add_item("yslinux","Syslinux Information Menu",OPT_SUBMENU,NULL,hdt_menu->syslinux_menu.menu); hdt_menu->main_menu.items_count++; add_item("Sitch to CLI","Switch to Command Line",OPT_RUN,HDT_SWITCH_TO_CLI,0); -- cgit v1.2.1