1
0

netboot.xyz-static 792 B

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