Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get DHCP/Option#67 inside a script
2020-05-13, 21:57
Post: #1
get DHCP/Option#67 inside a script
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.
Find all posts by this user
Quote this message in a reply
2020-05-14, 04:27
Post: #2
RE: get DHCP/Option#67 inside a script
what about ${67} or ${filename} also run the config command and see what pop up

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
2020-05-14, 19:32
Post: #3
RE: get DHCP/Option#67 inside a script
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...)
Find all posts by this user
Quote this message in a reply
2020-05-14, 19:54
Post: #4
RE: get DHCP/Option#67 inside a script
Did you try config command?
Hint there is platform containing pcbios or efi

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
2020-05-14, 21:50
Post: #5
RE: get DHCP/Option#67 inside a script
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

;-)
Find all posts by this user
Quote this message in a reply
Post Reply 




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