Advertisement
RulerOf

Basic iPXE script for embedding when using ProxyDHCP

Nov 16th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #!ipxe
  2. set dhcpTry:uint32 0
  3. set bootTry:uint32 0
  4. :retry_dhcp
  5. inc dhcpTry
  6. dhcp && goto retry_boot ||
  7. echo DHCP Failed. Count: ${dhcpTry}
  8. echo -n Retrying in 3 seconds && sleep 1 && echo -n . && sleep 1 && echo -n . && sleep 1 && echo . ||
  9. goto retry_dhcp
  10. :retry_boot
  11. inc bootTry
  12. imgfree
  13. chain ${proxydhcp/next-server}/script.ipxe && exit ||
  14. echo Boot Failed. Count: ${bootTry}
  15. echo -n Retrying in 3 seconds && sleep 1 && echo -n . && sleep 1 && echo -n . && sleep 1 && echo . ||
  16. goto retry_boot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement