[mac-address-grammateias]
HOSTNAME=grammateia
DEFAULT_IMAGE=disk
/etc/ltsp/ipxe.d/90-localboot.ipxe
#!ipxe
# LTSP per-terminal boot policy
# Add MAC addresses below for clients that should try local boot first.
isset ${net0/mac} && set clientmac ${net0/mac}
# === List of MACs for local boot-first terminals ===
set localboot_macs 08:00:27:13:69:77 08:00:27:aa:bb:cc
# (ανάλογα τις mac addresses που έχω, εννοείται)
# === Do not edit below this line ===
:check_macs
iseq ${localboot_macs} "" && goto end
getfirst ${localboot_macs} mac
shift localboot_macs
iseq ${clientmac} ${mac} && goto bootlocal
goto check_macs
:bootlocal
echo ${clientmac}: trying local disk first...
sanboot --no-describe --drive 0x80 || (echo Local boot failed, falling back to LTSP && goto ltsp)
:end