utils.ipxe 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. #!ipxe
  2. menu Utilities - Image Sig Checks: [${img_sigs_enabled}]
  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 grml_full ${space} Grml (Full)
  9. item grml_small ${space} Grml (Small)
  10. item hdt ${space} Hardware Detection Tool
  11. item memtest-420 ${space} Memtest86+ 4.20
  12. item memtest-501 ${space} Memtest86+ 5.01
  13. item partition-wizard ${space} Partition Wizard
  14. item pogostick ${space} Pogostick - Offline Windows Password and Registry Editor
  15. item supergrub ${space} Super Grub2 Disk
  16. item ubcd ${space} Ultimate Boot CD (UBCD)
  17. item --gap netboot.xyz tools:
  18. item nbxyz-custom ${space} Set Github User [user: ${github_user}]
  19. item testdistro ${space} Test Distribution ISO
  20. item testpr ${space} Test netboot.xyz branch
  21. choose --default ${menu} menu || goto utils_exit
  22. echo ${cls}
  23. goto ${menu} ||
  24. chain ${menu}.ipxe || goto utils_exit
  25. goto utils_exit
  26. :avg
  27. set util_path download.avg.com/filedir/inst/avg_arl_cdi_all_120_150814a10442.iso
  28. set util_file avg_arl_cdi_all_120_150814a10442.iso
  29. goto boot_memdisk
  30. :clonezilla
  31. set util_path sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/2.4.5-20/clonezilla-live-2.4.5-20-amd64.iso/download
  32. set util_file clonezilla-live-2.4.5-20-amd64.iso
  33. goto boot_memdisk
  34. :dban
  35. set util_path sourceforge.net/projects/dban/files/dban/dban-2.3.0/dban-2.3.0_i586.iso/download
  36. set util_file dban-2.3.0_i586.iso
  37. goto boot_memdisk
  38. :gparted
  39. set util_path sourceforge.net/projects/gparted/files/gparted-live-stable/0.25.0-3/gparted-live-0.25.0-3-amd64.iso/download
  40. set util_file gparted-live-0.25.0-3-amd64.iso
  41. goto boot_memdisk
  42. :grml_full
  43. set util_path download.grml.org/devel/grml64-full_20160415_netboot_xyz.iso
  44. set util_file grml64-full_20160415_netboot_xyz.iso
  45. goto boot_memdisk
  46. :grml_small
  47. set util_path download.grml.org/devel/grml64-small_20160415_netboot_xyz.iso
  48. set util_file grml64-small_20160415_netboot_xyz.iso
  49. goto boot_memdisk
  50. :hdt
  51. set util_path www.hdt-project.org/raw-attachment/wiki/hdt-0.5.0/hdt-0.5.2.iso
  52. set util_file hdt-0.5.2.iso
  53. goto boot_memdisk
  54. :memtest-420
  55. set util_path boot.netboot.xyz/utils/memtest86-4.20.bin
  56. set util_file memtest86-4.20.bin
  57. goto boot_memtest
  58. :memtest-501
  59. set util_path boot.netboot.xyz/utils/memtest86-5.01.bin
  60. set util_file memtest86-5.01.bin
  61. goto boot_memtest
  62. :partition-wizard
  63. set util_path www.partitionwizard.com/download/pwfree91-x64.iso
  64. set util_file pwfree91-x64.iso
  65. goto boot_memdisk
  66. :pogostick
  67. set util_path pogostick.net/~pnh/ntpasswd/cd140201.zip
  68. set util_file cd140201.zip
  69. goto boot_memdisk
  70. :supergrub
  71. set util_path forja.cenatic.es/frs/download.php/file/1844/super_grub2_disk_hybrid_2.02s3.iso
  72. set util_file super_grub2_disk_hybrid_2.02s3.iso
  73. goto boot_memdisk
  74. :ubcd
  75. set util_path mirror.sysadminguide.net/ubcd/ubcd535.iso
  76. set util_file ubcd535.iso
  77. goto boot_memdisk
  78. :boot_memdisk
  79. imgfree
  80. kernel ${memdisk} iso raw
  81. initrd --name ${util_file} http://${util_path}
  82. echo
  83. echo MD5sums:
  84. md5sum memdisk ${util_file}
  85. iseq ${img_sigs_enabled} true && goto verify_sigs || goto skip_sigs
  86. :verify_sigs
  87. echo
  88. echo Checking signatures...
  89. imgverify memdisk ${sigs}memdisk.sig || goto error
  90. imgverify ${util_file} ${sigs}${menu}/${util_file}.sig || goto error
  91. echo Signatures verified!
  92. echo
  93. :skip_sigs
  94. boot
  95. goto utils_exit
  96. :boot_memtest
  97. chain https://${util_kernel} && goto main_menu ||
  98. goto utils_exit
  99. :nbxyz-custom
  100. echo EXPERIMENTAL
  101. echo
  102. echo Make sure you have a fork of https://github.com/antonym/netboot.xyz-custom.
  103. echo You can then customize your fork as needed and set up your own custom options.
  104. echo Once your username is set, a custom option will appear on the main menu.
  105. echo
  106. echo -n Please enter your Github username: ${} && read github_user
  107. goto utils_exit
  108. :testdistro
  109. echo This option will allow you to test booting an ISO using memdisk. Please
  110. echo specify the url of the ISO you want to test and it will automatically
  111. echo attempt to load the ISO using memdisk.
  112. echo -n URL: ${} && read distro_iso
  113. kernel ${memdisk} iso raw
  114. initrd ${distro_iso}
  115. boot
  116. goto utils_exit
  117. :testpr
  118. clear github_user
  119. clear github_hash
  120. echo This will chainload into a testing branch of netboot.xyz. You'll need to enter
  121. echo your Github User and the first part of the commit hash of the commit you want
  122. echo to test or the branch name. This assumes you are testing from a netboot.xyz
  123. echo repo.
  124. echo
  125. echo -n Specify Github User Name: ${} && read github_user
  126. echo -n Specify branch name or hash ( i.e. my_feature or 30b7ca ): ${} && read github_hash
  127. echo
  128. echo Attempting to chainload:
  129. 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
  130. goto utils_exit
  131. :utils_exit
  132. clear menu
  133. exit 0