utils.ipxe 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!ipxe
  2. menu Utilities
  3. item --gap Utilities:
  4. item clonezilla ${space} Clonezilla
  5. item hdt ${space} Hardware Detection Tool
  6. item memtest ${space} MemTest86+
  7. choose --default ${menu} menu || goto utils_exit
  8. echo ${cls}
  9. goto ${menu} ||
  10. chain ${menu}.ipxe || goto error
  11. goto linux_exit
  12. :hdt
  13. kernel ${memdisk} iso raw
  14. initrd http://www.hdt-project.org/raw-attachment/wiki/hdt-0.5.0/hdt-0.5.2.iso
  15. boot
  16. goto utils_exit
  17. :clonezilla
  18. set version 2.2.3-25
  19. iseq ${arch} x86_64 && set cz_arch amd64 || set cz_arch i686-pae
  20. set project clonezilla
  21. set iso ${project}_live_stable/${version}/${project}-live-${version}-${cz_arch}.iso
  22. set czurl http://sourceforge.net/projects/clonezilla/files/${iso}/download
  23. kernel ${memdisk} iso raw ${params}
  24. :retry
  25. iseq ${try} xxxxx && exit ||
  26. set try ${try}x
  27. initrd ${czurl} || goto retry
  28. boot || goto utils_exit
  29. :memtest
  30. chain utils/memtest.bin ${params} && goto main_menu ||
  31. echo MEMORY ERROR DETECTED! ${errno}
  32. echo Press any key to continue ...
  33. read a
  34. goto utils_exit
  35. choose --timeout ${timeout} --default ${menu} menu || goto utils_exit
  36. echo ${cls}
  37. goto ${menu} ||
  38. chain ${menu}.ipxe || goto error
  39. goto linux_exit
  40. :utils_exit
  41. clear menu
  42. chain menu.ipxe
  43. exit 0