Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created April 21, 2018 22:14
Show Gist options
  • Save cleverca22/73d9fe4ac66a1d0cdae0a8b42381ea29 to your computer and use it in GitHub Desktop.
Save cleverca22/73d9fe4ac66a1d0cdae0a8b42381ea29 to your computer and use it in GitHub Desktop.
<?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