Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Last active March 23, 2017 08:12
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinsmidsrod/788eb37babc0fff5b18f to your computer and use it in GitHub Desktop.
Save robinsmidsrod/788eb37babc0fff5b18f to your computer and use it in GitHub Desktop.
Games menu for my iPXE menu example
############################ GAMES MENU #########################
:menu-games
menu Games for ${initiator-iqn}
item invaders Invaders (Space Invaders clone)
item tint Tint (Tetris clone)
item mineassemble MineAssemble (Minecraft clone, not working)
item
item --key 0x08 back Back to top menu...
iseq ${menu-default} menu-games && isset ${submenu-default} && goto menu-games-timed ||
choose selected && goto ${selected} || goto start
:menu-games-timed
choose --timeout ${submenu-timeout} --default ${submenu-default} selected && goto ${selected} || goto start
:invaders
echo Starting Invaders 1.0.0 for ${inititator-iqn}
# Can be found at http://www.erikyyy.de/invaders/
chain games/invaders-1.0.0/invaders || goto failed
goto start
:tint
echo Starting Tint for ${inititator-iqn}
# Info and source here: https://packages.qa.debian.org/t/tint.html
# Can find source at https://packages.debian.org/source/squeeze/tint
chain games/tint/tint || goto failed
goto start
:mineassemble
echo Starting MineAssemble for ${inititator-iqn}
# Can be found at https://github.com/Overv/MineAssemble
# None of these methods work reliabily, because of this problem:
# https://dl.dropboxusercontent.com/u/354628/20140901_100739_memdisk_mineassemble.jpg
initrd games/mineassemble/mineassemble.iso
chain memdisk iso || goto failed
#sanboot --no-describe ${sanboot-url}games/mineassemble/mineassemble.iso || goto failed
goto start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment