Advertisement
RulerOf

iPXE feature upgrade

Jul 22nd, 2014
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!ipxe
  2.  
  3. goto start
  4.  
  5. # Warning: Spaghetti code #
  6.  
  7. :ipxeUpgrade
  8. chain http://myserver/ipxe/superipxe.pxe || goto failed
  9.  
  10. :start
  11. vcreate --tag 100 && echo VLAN 100 interface online ||
  12. iseq ${builtin/errno} 0x2e022001 && goto ipxeUpgrade ||
  13. goto end
  14.  
  15. :failed
  16. echo Something failed. Oh well.
  17. reboot
  18.  
  19. :end
  20. # And here... whatever you do normally!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement