utils.ipxe 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #!ipxe
  2. menu Utilities
  3. item --gap Utilities:
  4. item avg ${space} AVG Rescue Linux - Offline AV scanning & removal
  5. item clonezilla ${space} Clonezilla
  6. item dban ${space} DBAN
  7. item gparted ${space} GParted
  8. item hdt ${space} Hardware Detection Tool
  9. item memtest ${space} MemTest86+
  10. item netbootcd ${space} NetbootCD.us
  11. item partition_wizard ${space} Partition Wizard
  12. item pogostick ${space} Pogostick - Offline Windows Password and Registry Editor
  13. item supergrub ${space} Super Grub2 Disk
  14. item --gap netboot.xyz tools:
  15. item testpr ${space} Test netboot.xyz branch
  16. choose --default ${menu} menu || goto utils_exit
  17. echo ${cls}
  18. goto ${menu} ||
  19. chain ${menu}.ipxe || goto utils_exit
  20. goto utils_exit
  21. :avg
  22. kernel ${memdisk} iso raw
  23. initrd http://download.avg.com/filedir/inst/avg_arl_cdi_all_120_150814a10442.iso
  24. boot
  25. goto utils_exit
  26. :clonezilla
  27. set version 2.4.2-61
  28. iseq ${arch} x86_64 && set cz_arch amd64 || set cz_arch i686-pae
  29. set project clonezilla
  30. set iso ${project}_live_stable/${version}/${project}-live-${version}-${cz_arch}.iso
  31. set czurl http://sourceforge.net/projects/clonezilla/files/${iso}/download
  32. kernel ${memdisk} iso raw ${params}
  33. :retry
  34. iseq ${try} xxxxx && exit ||
  35. set try ${try}x
  36. initrd ${czurl} || goto retry
  37. boot || goto utils_exit
  38. :dban
  39. set version 2.3.0
  40. kernel ${memdisk} iso raw
  41. initrd http://sourceforge.net/projects/dban/files/dban/dban-${version}/dban-${version}_i586.iso/download
  42. boot || goto utils_exit
  43. :gparted
  44. set version 0.24.0-2
  45. set project gparted
  46. set iso ${project}-live-stable/${version}/${project}-live-${version}-amd64.iso
  47. set czurl http://sourceforge.net/projects/gparted/files/${iso}/download
  48. kernel ${memdisk} iso raw ${params}
  49. :retry
  50. iseq ${try} xxxxx && exit ||
  51. set try ${try}x
  52. initrd ${czurl} || goto retry
  53. boot || goto utils_exit
  54. :hdt
  55. kernel ${memdisk} iso raw
  56. initrd http://www.hdt-project.org/raw-attachment/wiki/hdt-0.5.0/hdt-0.5.2.iso
  57. boot
  58. goto utils_exit
  59. :memtest
  60. chain utils/memtest.bin ${params} && goto main_menu ||
  61. echo MEMORY ERROR DETECTED! ${errno}
  62. echo Press any key to continue ...
  63. read a
  64. goto utils_exit
  65. :netbootcd
  66. kernel http://netbootcd.us/downloads/6.4.1/vmlinuz
  67. initrd http://netbootcd.us/downloads/6.4.1/nbinit4.gz
  68. boot
  69. :partition_wizard
  70. kernel ${memdisk} iso raw
  71. initrd http://www.partitionwizard.com/download/pwfree91-x64.iso
  72. boot
  73. goto utils_exit
  74. :pogostick
  75. kernel ${memdisk} iso raw
  76. initrd http://pogostick.net/~pnh/ntpasswd/cd140201.zip
  77. boot
  78. goto utils_exit
  79. :supergrub
  80. kernel ${memdisk} iso raw
  81. initrd https://forja.cenatic.es/frs/download.php/file/1844/super_grub2_disk_hybrid_2.02s3.iso
  82. boot
  83. goto utils_exit
  84. :testpr
  85. clear github_user
  86. clear github_hash
  87. echo This will chainload into a testing branch of netboot.xyz. You'll need to enter
  88. echo your Github User and the first part of the commit hash of the commit you want
  89. echo to test or the branch name. This assumes you are testing from a netboot.xyz
  90. echo repo.
  91. echo
  92. echo -n Specify Github User Name: ${} && read github_user
  93. echo -n Specify branch name or hash ( i.e. my_feature or 30b7ca ): ${} && read github_hash
  94. echo
  95. echo Attempting to chainload:
  96. chain --autofree https://raw.githubusercontent.com/${github_user}/netboot.xyz/${github_hash}/src/menu.ipxe || echo Unable to find branch... && sleep 5 && goto utils_exit
  97. goto utils_exit
  98. :utils_exit
  99. clear menu
  100. chain menu.ipxe
  101. exit 0