Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different Menus?
2019-06-16, 20:26
Post: #2
RE: Different Menus?
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.

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Different Menus? - Margeb - 2019-06-16, 13:05
RE: Different Menus? - NiKiZe - 2019-06-16 20:26
RE: Different Menus? - Margeb - 2019-06-17, 06:15



User(s) browsing this thread: 1 Guest(s)