1
0

utils.ipxe 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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 nbxyz-custom ${space} Set Github User [user: ${github_user}]
  17. item testdistro ${space} Test Distribution ISO
  18. item testpr ${space} Test netboot.xyz branch
  19. choose --default ${menu} menu || goto utils_exit
  20. echo ${cls}
  21. goto ${menu} ||
  22. chain ${menu}.ipxe || goto utils_exit
  23. goto utils_exit
  24. :avg
  25. kernel ${memdisk} iso raw
  26. initrd http://download.avg.com/filedir/inst/avg_arl_cdi_all_120_150814a10442.iso
  27. boot
  28. goto utils_exit
  29. :clonezilla
  30. set version 2.4.2-61
  31. iseq ${arch} x86_64 && set cz_arch amd64 || set cz_arch i686-pae
  32. set project clonezilla
  33. set iso ${project}_live_stable/${version}/${project}-live-${version}-${cz_arch}.iso
  34. set czurl http://sourceforge.net/projects/clonezilla/files/${iso}/download
  35. kernel ${memdisk} iso raw ${params}
  36. :retry
  37. iseq ${try} xxxxx && exit ||
  38. set try ${try}x
  39. initrd ${czurl} || goto retry
  40. boot || goto utils_exit
  41. :dban
  42. set version 2.3.0
  43. kernel ${memdisk} iso raw
  44. initrd http://sourceforge.net/projects/dban/files/dban/dban-${version}/dban-${version}_i586.iso/download
  45. boot || goto utils_exit
  46. :gparted
  47. set version 0.25.0-1
  48. set project gparted
  49. set iso ${project}-live-stable/${version}/${project}-live-${version}-amd64.iso
  50. set czurl http://sourceforge.net/projects/gparted/files/${iso}/download
  51. kernel ${memdisk} iso raw ${params}
  52. :retry
  53. iseq ${try} xxxxx && exit ||
  54. set try ${try}x
  55. initrd ${czurl} || goto retry
  56. boot || goto utils_exit
  57. :hdt
  58. kernel ${memdisk} iso raw
  59. initrd http://www.hdt-project.org/raw-attachment/wiki/hdt-0.5.0/hdt-0.5.2.iso
  60. boot
  61. goto utils_exit
  62. :memtest_420
  63. chain https://boot.netboot.xyz/utils/memtest86-4.20.bin && goto main_menu ||
  64. goto utils_exit
  65. :memtest_501
  66. chain https://boot.netboot.xyz/utils/memtest86-5.01.bin && goto main_menu ||
  67. goto utils_exit
  68. :nbxyz-custom
  69. echo EXPERIMENTAL
  70. echo
  71. echo Make sure you have a fork of https://github.com/antonym/netboot.xyz-custom.
  72. echo You can then customize your fork as needed and set up your own custom options.
  73. echo Once your username is set, a custom option will appear on the main menu.
  74. echo
  75. echo -n Please enter your Github username: ${} && read github_user
  76. goto utils_exit
  77. :netbootcd
  78. kernel http://netbootcd.us/downloads/6.4.1/vmlinuz
  79. initrd http://netbootcd.us/downloads/6.4.1/nbinit4.gz
  80. boot
  81. goto utils_exit
  82. :partition_wizard
  83. kernel ${memdisk} iso raw
  84. initrd http://www.partitionwizard.com/download/pwfree91-x64.iso
  85. boot
  86. goto utils_exit
  87. :pogostick
  88. kernel ${memdisk} iso raw
  89. initrd http://pogostick.net/~pnh/ntpasswd/cd140201.zip
  90. boot
  91. goto utils_exit
  92. :supergrub
  93. kernel ${memdisk} iso raw
  94. initrd https://forja.cenatic.es/frs/download.php/file/1844/super_grub2_disk_hybrid_2.02s3.iso
  95. boot
  96. goto utils_exit
  97. :testdistro
  98. echo This option will allow you to test booting an ISO using memdisk. Please
  99. echo specify the url of the ISO you want to test and it will automatically
  100. echo attempt to load the ISO using memdisk.
  101. echo -n URL: ${} && read distro_iso
  102. kernel ${memdisk} iso raw
  103. initrd ${distro_iso}
  104. boot
  105. goto utils_exit
  106. :testpr
  107. clear github_user
  108. clear github_hash
  109. echo This will chainload into a testing branch of netboot.xyz. You'll need to enter
  110. echo your Github User and the first part of the commit hash of the commit you want
  111. echo to test or the branch name. This assumes you are testing from a netboot.xyz
  112. echo repo.
  113. echo
  114. echo -n Specify Github User Name: ${} && read github_user
  115. echo -n Specify branch name or hash ( i.e. my_feature or 30b7ca ): ${} && read github_hash
  116. echo
  117. echo Attempting to chainload:
  118. 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
  119. goto utils_exit
  120. :utils_exit
  121. clear menu
  122. exit 0