summaryrefslogtreecommitdiff
path: root/com32/hdt/hdt-menu.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-03-01 11:15:59 +0100
committerErwan Velu <erwan.velu@free.fr>2009-03-01 11:15:59 +0100
commita6a42ea881e803995a3103b0af95f75570db9627 (patch)
treef97b35dd8a9665da4875ea905fcc13a194966802 /com32/hdt/hdt-menu.c
parentc73ffb0c9d7b42046a895df80b2443c21d41fef7 (diff)
downloadsyslinux-a6a42ea881e803995a3103b0af95f75570db9627.tar.gz
hdt: Bump version 0.2.1
Adding pxe menu in menu mode
Diffstat (limited to 'com32/hdt/hdt-menu.c')
-rw-r--r--com32/hdt/hdt-menu.c11
1 files changed, 9 insertions, 2 deletions
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("<K>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("<K>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("P<X>E","PXE Information Menu",OPT_SUBMENU,NULL,hdt_menu->pxe_menu.menu);
+ hdt_menu->main_menu.items_count++;
+ }
add_item("<S>yslinux","Syslinux Information Menu",OPT_SUBMENU,NULL,hdt_menu->syslinux_menu.menu);
hdt_menu->main_menu.items_count++;
add_item("S<w>itch to CLI","Switch to Command Line",OPT_RUN,HDT_SWITCH_TO_CLI,0);