1
0

netboot.xyz-dhcp 782 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!ipxe
  2. :start
  3. set version 1
  4. echo netboot.xyz iPXE loader v${version}
  5. goto dhcp
  6. :dhcp
  7. dhcp || goto static
  8. prompt --key m --timeout 4000 Hit the ${bold}d${boldoff} key to open the debug console && goto debug || goto start
  9. goto menu
  10. :static
  11. echo DHCP Server not found, enabling manual override:
  12. imgfree
  13. ifclose net0
  14. echo -n IP: && read net0/ip
  15. echo -n Subnet mask: && read net0/netmask
  16. echo -n Gateway: && read net0/gateway
  17. echo -n DNS: && read dns
  18. ifopen net0
  19. echo Attempting chainload of netboot.xyz...
  20. goto menu || goto failsafe
  21. :menu
  22. chain --autofree http://cdn.netboot.xyz/menu.ipxe
  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