iPXE discussion forum

Full Version: get DHCP/Option#67 inside a script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Inside a script...

How can I get the "Boot File Name" passed in DHCP option 67 AngelRolleyes

in this case can be "ipxe.efi", "undionly.kpxe", "ipxe.lkrn", etc. etc.
what about ${67} or ${filename} also run the config command and see what pop up
hi nikize.... that option gives me the script name...
I want to know the name of the ipxe file
that executed the current script (ipxe.ipx, snponly-x86-64.efi, undionly.kpxe, etc. etc. )

better,,,
I just want to know (inside the script) if the current boot
was originated from BIOS or from EFI firmware
(i dont really need those ipxe file names...)
Did you try config command?
Hint there is platform containing pcbios or efi
yes...
that was what I used
(when i realized i cannot grab the executing ipxe file name)

the snippet created is:

iseq ${platform} efi && set xPLT EFI ||
iseq ${platform} pcbios && set xPLT BIOS ||
isset ${platform} || set xPLT Unknown

;-)
Reference URL's