utils.ipxe 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #!ipxe
  2. menu Utilities
  3. item --gap Utilities:
  4. item avg ${space} AVG Rescue CD
  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_420 ${space} Memtest86+ 4.20
  10. item memtest_501 ${space} Memtest86+ 5.01
  11. item netbootcd ${space} NetbootCD.us
  12. item partition_wizard ${space} Partition Wizard
  13. item pogostick ${space} Pogostick - Offline Windows Password and Registry Editor
  14. item supergrub ${space} Super Grub2 Disk
  15. item --gap netboot.xyz tools:
  16. item testdistro ${space} Test Distribution ISO
  17. item testpr ${space} Test netboot.xyz branch
  18. choose --default ${menu} menu || goto utils_exit
  19. echo ${cls}
  20. goto ${menu} ||
  21. chain ${menu}.ipxe || goto utils_exit
  22. goto utils_exit
  23. :avg
  24. kernel ${memdisk} iso raw
  25. initrd http://download.avg.com/filedir/inst/avg_arl_cdi_all_120_150814a10442.iso
  26. boot
  27. goto utils_exit
  28. :clonezilla
  29. set version 2.4.2-61
  30. iseq ${arch} x86_64 && set cz_arch amd64 || set cz_arch i686-pae
  31. set project clonezilla
  32. set iso ${project}_live_stable/${version}/${project}-live-${version}-${cz_arch}.iso
  33. set czurl http://sourceforge.net/projects/clonezilla/files/${iso}/download
  34. kernel ${memdisk} iso raw ${params}
  35. :retry
  36. iseq ${try} xxxxx && exit ||
  37. set try ${try}x
  38. initrd ${czurl} || goto retry
  39. boot || goto utils_exit
  40. :dban
  41. set version 2.3.0
  42. kernel ${memdisk} iso raw
  43. initrd http://sourceforge.net/projects/dban/files/dban/dban-${version}/dban-${version}_i586.iso/download
  44. boot || goto utils_exit
  45. :gparted
  46. set version 0.25.0-1
  47. set project gparted
  48. set iso ${project}-live-stable/${version}/${project}-live-${version}-amd64.iso
  49. set czurl http://sourceforge.net/projects/gparted/files/${iso}/download
  50. kernel ${memdisk} iso raw ${params}
  51. :retry
  52. iseq ${try} xxxxx && exit ||
  53. set try ${try}x
  54. initrd ${czurl} || goto retry
  55. boot || goto utils_exit
  56. :hdt
  57. kernel ${memdisk} iso raw
  58. initrd http://www.hdt-project.org/raw-attachment/wiki/hdt-0.5.0/hdt-0.5.2.iso
  59. boot
  60. goto utils_exit
  61. :memtest_420
  62. chain https://boot.netboot.xyz/utils/memtest86-4.20.bin && goto main_menu ||
  63. goto utils_exit
  64. :memtest_501
  65. chain https://boot.netboot.xyz/utils/memtest86-5.01.bin && goto main_menu ||
  66. goto utils_exit
  67. :netbootcd
  68. kernel http://netbootcd.us/downloads/6.4.1/vmlinuz
  69. initrd http://netbootcd.us/downloads/6.4.1/nbinit4.gz
  70. boot
  71. :partition_wizard
  72. kernel ${memdisk} iso raw
  73. initrd http://www.partitionwizard.com/download/pwfree91-x64.iso
  74. boot
  75. goto utils_exit
  76. :pogostick
  77. kernel ${memdisk} iso raw
  78. initrd http://pogostick.net/~pnh/ntpasswd/cd140201.zip
  79. boot
  80. goto utils_exit
  81. :supergrub
  82. kernel ${memdisk} iso raw
  83. initrd https://forja.cenatic.es/frs/download.php/file/1844/super_grub2_disk_hybrid_2.02s3.iso
  84. boot
  85. goto utils_exit
  86. :testdistro
  87. echo This option will allow you to test booting an ISO using memdisk. Please
  88. echo specify the url of the ISO you want to test and it will automatically
  89. echo attempt to load the ISO using memdisk.
  90. echo -n URL: ${} && read distro_iso
  91. kernel ${memdisk} iso raw
  92. initrd ${distro_iso}
  93. boot
  94. :testpr
  95. clear github_user
  96. clear github_hash
  97. echo This will chainload into a testing branch of netboot.xyz. You'll need to enter
  98. echo your Github User and the first part of the commit hash of the commit you want
  99. echo to test or the branch name. This assumes you are testing from a netboot.xyz
  100. echo repo.
  101. echo
  102. echo -n Specify Github User Name: ${} && read github_user
  103. echo -n Specify branch name or hash ( i.e. my_feature or 30b7ca ): ${} && read github_hash
  104. echo
  105. echo Attempting to chainload:
  106. 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
  107. goto utils_exit
  108. :utils_exit
  109. clear menu
  110. chain menu.ipxe
  111. exit 0