#!ipxe set menu-timeout 5000 set submenu-timeout ${menu-timeout} set boot-server "http://pxe.xepa.nl" set syslog pxe.xepa.nl iseq ${cls} serial && goto ignore_cls || set cls:hex 1b:5b:4a # ANSI clear screen sequence - "^[[J" set cls ${cls:string} :ignore_cls isset ${arch} && goto skip_arch_detect || cpuid --ext 29 && set arch x86_64 || set arch i386 :skip_arch_detect # ------ DYNAMIC ----- :start clear menu set space:hex 20:20 set space ${space:string} menu iPXE boot menu for unknown item --key b local ^Boot from local hdd item --key i install (I)nstallation item --key u utilities (U)tilities item --key r reboot (R)eboot item --gap -- ----------------------------- Advanced configuration ----------------------------- item shell Enter iPXE shell item config Enter iPXE config isset ${menu} && set timeout 0 || set timeout ${menu-timeout} choose --timeout ${menu-timeout} --default local menu && goto ${menu} || goto start :local echo Booting from local disks ... exit 0 :install chain http://pxe.xepa.nl/menu/install?hostname=%24%7Bhostname%7D&mac=%24%7Bmac%7D || goto start :utilities chain http://pxe.xepa.nl/menu/utilities?hostname=%24%7Bhostname%7D&mac=%24%7Bmac%7D || goto start :reboot reboot goto start :shell echo Type exit to get the back to the menu shell set menu-timeout 0 set submenu-timeout 0 goto start :config config goto start # ------ DYNAMIC -----