#include <errno.h>
#include <syslinux/pxe.h>
#include <syslinux/config.h>
+#include <sys/gpxe.h>
#include "hdt-cli.h"
#include "hdt-common.h"
}
more_printf(" Addresses : %d.%d.%d.%d @ %s\n", p->ip_addr[0],
p->ip_addr[1], p->ip_addr[2], p->ip_addr[3], p->mac_addr);
+
+ if (is_gpxe())
+ more_printf(" gPXE Detected: Yes\n")
+ else
+ more_printf(" gPXE Detected: No\n");
}
struct cli_module_descr pxe_show_modules = {
*/
#include "hdt-menu.h"
+#include <sys/gpxe.h>
/* Main Kernel menu */
void compute_PXE(struct s_my_menu *menu, struct s_hardware *hardware)
{
char buffer[SUBMENULEN + 1];
char infobar[STATLEN + 1];
+ char gpxe[4];
if (hardware->is_pxe_valid == false)
return;
add_item(buffer, infobar, OPT_INACTIVE, NULL, 0);
menu->items_count++;
+ if (is_gpxe()) strcat(gpxe,"Yes");
+ else strcat (gpxe,"No");
+
+ snprintf(buffer, sizeof buffer, "gPXE Detected: %s", gpxe);
+ snprintf(infobar, sizeof infobar, "gPXE Detected: %s", gpxe);
+ add_item(buffer, infobar, OPT_INACTIVE, NULL, 0);
+ menu->items_count++;
+
printf("MENU: PXE menu done (%d items)\n", menu->items_count);
}