#!ipxe set boot-url http://test.hidao.org/data/User/admin/home/TinyPXEServer #set boot-url http://${next-server} #set iqn iqn.2008-08.com.starwindsoftware:test #set nfs-server nfs://${next-server} #set cifs-server //${next-server} #set mytarget iscsi:${next-server}::::iqn.2008-08.com.starwindsoftware:target1 #set gateway 0.0.0.0 #set keep-san 1 #set initiator-iqn iqn.client # Setup some basic convenience variables set menu-timeout 8000 set submenu-timeout ${menu-timeout} #check platform (pcbios or efi), buildarch (i386 or X86_64) echo Platform: ${platform} echo Buildarch: ${buildarch} # Ensure we have menu-default set to something isset ${menu-default} || set menu-default WinPE_x64 #console --picture ${boot-url}/bg.png ######## MAIN MENU ################### :start iseq ${platform} efi && menu iPXE Boot Menu (UEFI) - Mod By hidao.org || menu iPXE Boot Menu (BIOS) - Mod By hidao.org item --gap -- IP:${ip} -- DHCP:${dhcp-server} -- boot-url = ${boot-url} item item --gap -- ----------------------- Win PE ----------------------- item --key 1 isoboot [1] Boot boot.iso ------------------------ (BIOS/UEFI) Unavailable item --key 2 WinPE_x86 [2] Boot boot32.wim ---------------------- (BIOS/UEFI) Unavailable item --key 3 WinPE_x64 [3] Boot boot64.wim ---------------------- (BIOS/UEFI) Unavailable item --gap -- item --gap -- ----------------------- Linux ------------------------ item --key l Slitaz [L] Boot Slitaz -------------------------- (BIOS Only) Available item --key t TinyCore [T] Boot TinyCore ------------------------ (BIOS Only) Available item --key k kolibri [K] Boot Kolibri ------------------------- (BIOS Only) Available item --key e menuetos [E] Boot MenuetOS ------------------------ (BIOS Only) Available item --key o openwrt [O] Install openwrt X86 ------------------ (BIOS Only) Testing item --gap -- item --gap -- ----------------------- Other Tools ------------------ item --key m memtest [M] Boot Memtest x86 --------------------- (BIOS/UEFI) Available item --key g GhostDos [G] Boot GhostDos ------------------------ (BIOS Only) Available item --key d MaxDos [D] Boot MaxDos -------------------------- (BIOS Only) Available item --gap -- #item --gap -- ---------------------- Exit Boot ----------- item --key x exit [X] Exit iPXE and continue boot ---------------------- item --gap -- item --gap -- item --gap -- ----------------------- Advanced options ------------- item --key c config [C] Configure settings ------------------------------- item --key i shell [I] Enter iPXE shell --------------------------------- item --key r reboot [R] Reboot ------------------------------------------- item --key s power [S] Power Off ---------------------------------------- choose --timeout ${menu-timeout} --default ${menu-default} selected goto ${selected} #choose --default exit --timeout ${menu-timeout} target && goto ${target} ########## UTILITY ITEMS #################### :local80 sanboot --no-describe --drive 0x80 :local81 sanboot --no-describe --drive 0x81 :isoboot initrd ${boot-url}/sources/boot.iso || goto Failed chain ${boot-url}/memdisk iso raw || goto Failed boot || goto Failed :WinPE_x86 iseq ${platform} efi && set bootfile bootia32.efi && set bcdfile efi-BCD && set wimbootfile wimboot.efi || set bootfile bootmgr && set bcdfile bios-BCD && set wimbootfile wimboot kernel ${boot-url}/${wimbootfile} || goto Failed initrd ${boot-url}/boot/${bootfile} || goto Failed initrd ${boot-url}/boot/${bcdfile} || goto Failed initrd ${boot-url}/boot/boot.sdi || goto Failed initrd ${boot-url}/sources/boot32.wim || goto Failed boot || goto Failed goto start :WinPE_x64 iseq ${platform} efi && set bootfile bootix64.efi && set bcdfile efi-bcd && set wimbootfile wimboot.efi || set bootfile bootmgr && set bcdfile bios-bcd && set wimbootfile wimboot kernel ${boot-url}/${wimbootfile} || goto Failed initrd ${boot-url}/boot/${bootfile} || goto Failed initrd ${boot-url}/boot/${bcdfile} || goto Failed initrd ${boot-url}/boot/boot.sdi || goto Failed initrd ${boot-url}/sources/boot64.wim || goto Failed boot || goto Failed goto start :TinyCore kernel ${boot-url}/sources/vmlinuz root=/dev/null vga=788 autologin || goto Failed initrd ${boot-url}/sources/core.gz || goto Failed boot || goto Failed :Slitaz kernel ${boot-url}/sources/bzImage root=/dev/null vga=788 autologin || goto Failed initrd ${boot-url}/sources/rootfs.gz || goto Failed boot || goto Failed :kolibri initrd ${boot-url}/images/kolibri.img || goto Failed chain ${boot-url}/memdisk img raw || goto Failed boot || goto Failed :menuetos initrd ${boot-url}/images/menuetos.img || goto Failed chain ${boot-url}/memdisk img raw || goto Failed boot || goto Failed :openwrt chain ${boot-url}/oppxeins || goto Failed boot || goto Failed :memtest chain ${boot-url}/images/memtest || goto Failed boot || goto Faild goto start :GhostDos initrd ${boot-url}/images/ghost.img || goto Failed chain ${boot-url}/memdisk img raw || goto Failed boot || goto Failed :MaxDos initrd ${boot-url}/images/MAXDOS.img || goto Failed chain ${boot-url}/memdisk ima raw || goto Failed boot || goto Failed :Failed echo Booting Failed, dropping to shell goto shell :shell echo Type exit to get the back to the menu shell set menu-timeout 0 goto start :reboot reboot :Power poweroff :exit exit :config config goto start