17 lines
393 B
Plaintext
17 lines
393 B
Plaintext
#!ipxe
|
|
|
|
# Detectar si se está ejecutando en modo UEFI o BIOS
|
|
iseq ${platform} efi && goto uefi_boot || goto bios_boot
|
|
|
|
:bios_boot
|
|
echo "Running in BIOS mode"
|
|
# Si el cliente es BIOS, arranca el grub.pxe
|
|
chain http://__SERVERIP__/tftpboot/grub.pxe
|
|
exit
|
|
|
|
:uefi_boot
|
|
echo "Running in UEFI mode"
|
|
# Si el cliente es UEFI, arranca el grubx64.efi
|
|
chain http://__SERVERIP__/tftpboot/grubx64.efi
|
|
exit
|