utils-arm.ipxe.j2 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!ipxe
  2. menu Utilities
  3. item --gap Utilities:
  4. {% for key, value in utilitiesarm.items() | sort(attribute='1.name') %}
  5. {% if value.enabled %}
  6. item {{ key }} ${space} {{ value.name }}
  7. {% endif %}
  8. {% endfor %}
  9. item --gap netboot.xyz tools:
  10. item nbxyz-custom ${space} Set Github username [user: ${github_user}]
  11. item nbxyz ${space} netboot.xyz endpoints
  12. choose --default ${menu} menu || goto utils_exit
  13. echo ${cls}
  14. goto ${menu} ||
  15. chain ${menu}.ipxe || goto utils_exit
  16. goto utils_exit
  17. {% for key, value in utilitiesarm.items() | sort %}
  18. {% if value.enabled | bool and value.type == "direct" %}
  19. :{{ key }}
  20. imgfree
  21. kernel {{ value.kernel }}
  22. initrd {{ value.initrd }}
  23. boot
  24. goto utils_exit
  25. {% endif %}
  26. {% endfor %}
  27. :nbxyz-custom
  28. echo EXPERIMENTAL
  29. echo
  30. echo Make sure you have a fork of https://github.com/netbootxyz/netboot.xyz-custom.
  31. echo You can then customize your fork as needed and set up your own custom options.
  32. echo Once your username is set, a custom option will appear on the main menu.
  33. echo
  34. echo -n Please enter your Github username: ${} && read github_user
  35. goto utils_exit
  36. :utils_exit
  37. clear menu
  38. exit 0