utils.ipxe 4.5 KB

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