iPXE discussion forum
Different Menus? - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Different Menus? (/showthread.php?tid=18434)



Different Menus? - Margeb - 2019-06-16 13:05

Hi there,

can I have different menus or menu items for bios pxe and uefi pxe?

TIA

Markus


RE: Different Menus? - NiKiZe - 2019-06-16 20:26

Yes,
use
Code:
iseq ${platform} efi && menu ..... ||
Relevant documentation ...
https://ipxe.org/cmd/iseq
https://ipxe.org/cfg/platform

iseq is the check, || at the end is important as to not cause the script to exit if it dosn't match
the platform variable contains pcbios or efi.

One other common technique is to send the platform variable to the webserver, which when the script is generated, decides which items to include.
it is also possible to use goto or other script commands instead as the example on the platform page.


RE: Different Menus? - Margeb - 2019-06-17 06:15

Hi NiKiZe,

thanks a lot, that helped me!

Markus