Last active
August 29, 2015 14:01
-
-
Save schlomo/ef92e1addbd0c4ad3e66 to your computer and use it in GitHub Desktop.
iPXE protected installation menu demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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