Advertisement
Guest User

Untitled

a guest
Nov 29th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. clever@c2d /var/www/c2d $ nix-build -A netboot -o netboot '<nixpkgs/nixos/release.nix>' -Q -j 8
  2. clever@c2d /var/www/c2d $ cat boot.php
  3. <?php
  4. switch ($_GET['mac']) {
  5. case '00:1c:23:16:4b:b3';
  6. ?>
  7. #!ipxe
  8. sanboot iscsi:192.168.2.11:::1:iqn.2016-01.laptop-root
  9. <?php
  10. break;
  11. case '08:00:27:15:bd:7b';
  12. if ($_GET['version'] == '') { # virtualbox pxe is too old, upgrade
  13. ?>
  14. #!ipxe
  15. chain tftp://192.168.2.61/undionly.kpxe
  16. <?php
  17. } else { # upgrade complete, chainload the script
  18. ?>
  19. #!ipxe
  20. chain http://c2d.localnet/netboot/netboot.ipxe
  21. <?php
  22. }
  23. break;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement