#!ipxe # Global variables used by all other iPXE scripts chain --autofree boot.ipxe.cfg || # Boot //hostname-.ipxe # if hostname DHCP variable is set and script is present isset ${hostname} && chain --replace --autofree ${boot-dir}hostname-${hostname}.ipxe || # Boot //uuid-.ipxe # if SMBIOS UUID variable is set and script is present isset ${uuid} && chain --replace --autofree ${boot-dir}uuid-${uuid}.ipxe || # Boot //mac-010203040506.ipxe if script is present chain --replace --autofree ${boot-dir}mac-${mac:hexraw}.ipxe || # Boot //pci-8086100e.ipxe if one type of # PCI Intel adapter is present and script is present chain --replace --autofree ${boot-dir}pci-${pci/${busloc}.0.2}${pci/${busloc}.2.2}.ipxe || # Boot //chip-82541pi.ipxe if one type of # PCI Intel adapter is present and script is present chain --replace --autofree ${boot-dir}chip-${chip}.ipxe || # Boot /menu.ipxe script if all other options have been exhausted chain --replace --autofree ${menu-url} ||