Created
April 21, 2018 22:14
-
-
Save cleverca22/73d9fe4ac66a1d0cdae0a8b42381ea29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
switch (strtolower($_GET['mac'])) { | |
case '00:1c:23:16:4b:b3'; | |
?> | |
#!ipxe | |
chain http://amd.localnet/netboot.ipxe | |
#sanboot iscsi:192.168.2.11:::1:iqn.2016-01.laptop-root | |
<?php | |
break; | |
default; | |
case '08:00:27:15:bd:7b'; | |
case '08:00:27:1f:4d:5a'; | |
if ($_GET['version'] == '') { | |
?> | |
#!ipxe | |
chain tftp://192.168.2.61/undionly.kpxe | |
<?php | |
} else { | |
?> | |
#!ipxe | |
chain http://c2d.localnet/netboot/netboot.ipxe | |
<?php | |
} | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment