ipxe/boot.ipxe
2024-05-01 02:49:51 -05:00

27 lines
1.1 KiB
Plaintext

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