#!ipxe

:vmaster
kernel /livehttp/xen dom0_mem=1024M
module /livehttp/vmlinuz boot=livehttps mac=${net0/mac} bootserver=${boot-url}
module /livehttp/initrd
boot || goto start


###################### MAIN MENU ####################################
:start

menu iPXE boot menu 2
item --gap --             ------------------------- Operating systems ------------------------------
item --key v vmaster      Boot Virtualmaster
item --key d freedos      Boot FreeDOS
item --gap --             ------------------------- Tools and utilities ----------------------------
item --key f firmware     Cisco CIMC firmware upgrade
item --gap --             ------------------------- Advanced options -------------------------------
item --key c config       Configure settings
item shell                Drop to iPXE shell
item reboot               Reboot computer
item
item --key x exit         Exit iPXE and continue BIOS boot
choose --timeout 3 selected && goto ${selected} || goto cancel

:cancel
echo You cancelled the menu, dropping you to a shell

:shell
echo Type 'exit' to get the back to the menu
shell
set menu-timeout 0
goto start

:failed
echo "Boot failed, dropping to shell"
goto :shell

:freedos
