Advertisement
Guest User

Untitled

a guest
Dec 8th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. #!ipxe
  2. set fog-ip 172.22.4.25
  3. set fog-webroot fog
  4. set boot-url http://${fog-ip}/${fog-webroot}
  5. #!ipxe
  6. cpuid --ext 29 && set arch x86_64 || set arch i386
  7. goto get_console
  8. :console_set
  9. colour --rgb 0x00567a 1 && colour --rgb 0x00567a 2 && colour --rgb 0x00567a 4 ||
  10. cpair --foreground 7 --background 2 2 ||
  11. goto MENU
  12. :alt_console
  13. cpair --background 0 1 && cpair --background 1 2 ||
  14. goto MENU
  15. :get_console
  16. console --picture http://172.22.4.25/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
  17. :MENU
  18. menu
  19. colour --rgb 0xff0000 0 ||
  20. cpair --foreground 1 1 ||
  21. cpair --foreground 0 3 ||
  22. cpair --foreground 4 4 ||
  23. item --gap Host is NOT registered!
  24. item --gap -- -------------------------------------
  25. item fog.local Boot from hard disk
  26. item fog.memtest Run Memtest86+
  27. item fog.reginput Perform Full Host Registration and Inventory
  28. item fog.reg Quick Registration and Inventory
  29. item fog.quickimage Quick Image
  30. item fog.multijoin Join Multicast Session
  31. item fog.sysinfo Client System Information (Compatibility)
  32. choose --default fog.local --timeout 3000 target && goto ${target}
  33. :fog.local || goto MENU
  34. :fog.memtest
  35. kernel memdisk iso raw
  36. initrd memtest.bin
  37. boot || goto MENU
  38. :fog.reginput
  39. kernel bzImage32 loglevel=4 init=/sbin/init initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.22.4.25/fog/ consoleblank=0 loglevel=4 mode=manreg
  40. imgfetch init_32.xz
  41. boot || goto MENU
  42. :fog.reg
  43. kernel bzImage32 loglevel=4 init=/sbin/init initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.22.4.25/fog/ consoleblank=0 loglevel=4 mode=autoreg
  44. imgfetch init_32.xz
  45. boot || goto MENU
  46. :fog.quickimage
  47. login
  48. params
  49. param mac0 ${net0/mac}
  50. param arch ${arch}
  51. param username ${username}
  52. param password ${password}
  53. param qihost 1
  54. isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
  55. isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
  56. :fog.multijoin
  57. login
  58. params
  59. param mac0 ${net0/mac}
  60. param arch ${arch}
  61. param username ${username}
  62. param password ${password}
  63. param sessionJoin 1
  64. isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
  65. isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
  66. :fog.sysinfo
  67. kernel bzImage32 loglevel=4 init=/sbin/init initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.22.4.25/fog/ consoleblank=0 loglevel=4 mode=sysinfo
  68. imgfetch init_32.xz
  69. boot || goto MENU
  70. :bootme
  71. chain -ar http://172.22.4.25/fog/service/ipxe/boot.php##params ||
  72. goto MENU
  73. autoboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement