1
0

netboot.xyz-dhcp 827 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!ipxe
  2. :start
  3. set version 1.03
  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. sleep 5
  23. chain --autofree http://boot.netboot.xyz/menu.ipxe || echo HTTP has failed, localbooting...
  24. goto boot
  25. :failsafe
  26. echo Attempt to load netboot.xyz failed... restarting...
  27. goto start
  28. :boot
  29. sanboot --no-describe --drive 0x80
  30. :debug
  31. echo Type "exit" to return to menu
  32. shell
  33. goto start