Displaying 1 result from an estimated 1 matches for "srvip".
Did you mean:
srvid
2016 Jun 29
0
Fwd: [PATCH] {vesa}menu.c32 feature => hide menu entry for specific sources
...*/
@@ -326,6 +328,34 @@ static void record(struct menu *m, struc
if (ld->menuhide)
m = hide_menu;
+ /* if HIDEIFNOT is specified , then send this entry to "hidden menu" until source doesn't match */
+ if (ld->visiblesource){
+ sdi = syslinux_derivative_info();
+ uint32_t srvip;
+ char strsrvip[50];
+ switch (sdi->c.filesystem) {
+ case SYSLINUX_FS_ISOLINUX:
+ if (strcmp(ld->visiblesource, "ISO")!=0) // if booting from CD and ISO is not specified => hide
+ m = hide_menu;
+ break;
+ case SYSLINUX_FS_PXELINUX: // if booting from pxe and tf...