#!ipxe ################### # EMBEDDED SCRIPT # ################### ifopen || iseq ${gateway} ${} || goto loop iseq ${ip} ${} || goto loop echo Running DHCP since no IP config was found dhcp || :loop chain -ar https://bas.intra.uni-freiburg.de/api/configloader/${uuid} || # Error check set error ${errno} iseq ${error} 0x216eb8f && goto timeerror || iseq ${error} 0x216ea8f && goto hostnameerror || sleep 5 dhcp || goto loop :timeerror echo Certificate Issue: echo Check if your systemtime matches the validity period of the certificate. prompt Press any key to reboot && reboot :hostnameerror echo Certificate Issue: echo Your hostname does not match the hostname in the certificate. prompt Press any key to reboot && reboot