netboot.xyz-dhcp 589 B

1234567891011121314151617181920212223242526272829303132
  1. #!ipxe
  2. :start
  3. set version 1
  4. echo netboot.xyz iPXE loader v${version}
  5. :dhcp
  6. dhcp || goto static
  7. goto start
  8. :static
  9. echo DHCP Server not found, enabling manual override:
  10. imgfree
  11. ifclose net0
  12. echo -n IP: && read net0/ip
  13. echo -n Subnet mask: && read net0/netmask
  14. echo -n Gateway: && read net0/gateway
  15. echo -n DNS: && read dns
  16. ifopen net0
  17. echo Attempting chainload of netboot.xyz...
  18. goto start || goto failsafe
  19. :start
  20. chain http://cdn.netboot.xyz/menu.ipxe
  21. goto boot
  22. :failsafe
  23. echo Attempt to load netboot.xyz failed... restarting...
  24. goto start
  25. :boot
  26. sanboot --no-describe --drive 0x80