1
0

netboot.xyz-dhcp 819 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!ipxe
  2. :start
  3. set version 1.02
  4. echo netboot.xyz iPXE loader v${version}
  5. goto dhcp
  6. :dhcp
  7. dhcp || goto static
  8. goto menu
  9. :static
  10. echo DHCP Server not found, enabling manual override:
  11. imgfree
  12. ifclose net0
  13. echo -n IP: && read net0/ip
  14. echo -n Subnet mask: && read net0/netmask
  15. echo -n Gateway: && read net0/gateway
  16. echo -n DNS: && read dns
  17. ifopen net0
  18. echo Attempting chainload of netboot.xyz...
  19. goto menu || goto failsafe
  20. :menu
  21. chain --autofree https://boot.netboot.xyz/menu.ipxe || echo HTTPS appears to have failed... attemping HTTP
  22. chain --autofree http://boot.netboot.xyz/menu.ipxe || echo HTTP has failed, localbooting...
  23. goto boot
  24. :failsafe
  25. echo Attempt to load netboot.xyz failed... restarting...
  26. goto start
  27. :boot
  28. sanboot --no-describe --drive 0x80
  29. :debug
  30. echo Type "exit" to return to menu
  31. shell
  32. goto start