#!ipxe # Give user a chance to enter the shell prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE shell... || goto no_shell shell exit :no_shell # Boot the system dhcp || goto dhcpfailed chain http://${next-server}/ipxe.cfg?host=${hostname} || goto chainfailed :dhcpfailed echo Unable to get DHCP lease! goto reboot :chainfailed echo Failed to chain new config! goto reboot :reboot echo Rebooting in 30 seconds... sleep 30 reboot