Skip to content

Instantly share code, notes, and snippets.

@schlomo
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schlomo/ef92e1addbd0c4ad3e66 to your computer and use it in GitHub Desktop.
Save schlomo/ef92e1addbd0c4ad3e66 to your computer and use it in GitHub Desktop.
iPXE protected installation menu demo
#!ipxe
console -x 800 -y 600 --picture http://www.linux-magazin.de/extension/lnm/design/linux_magazin/images/lm_logo_online.png --top 350
:menu
menu Was moechten Sie jetzt machen?
item --key n local Normaler Systemstart
item --gap Fuer den Systemverwalter
item --key i install Installationsmenue aufrufen
item --key d diag PC-Diagnose starten
item --key r reboot Neu starten
item --key p poweroff Ausschalten
choose --default local --timeout 10000 target && goto ${target} || goto local
:local
sanboot --no-describe --drive 0x80 || prompt ERROR Press key to continue
goto menu
:diag
sanboot http://www.hdt-project.org/raw-attachment/wiki/hdt-0.5.0/hdt-0.5.2.img || prompt ERROR Press key to continue
goto menu
:install
login
chain http://${username:uristring}:${password:uristring}@schlomo.a78.org/login.php?//goo.gl/ICq3Ql || prompt ERROR Press key to continue
goto menu
:reboot
reboot
:poweroff
poweroff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment