Created
June 13, 2012 07:19
-
-
Save EntropyWorks/2922493 to your computer and use it in GitHub Desktop.
Very Basic iPXE php script
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 | |
echo "#!ipxe\n"; | |
$install = true; | |
$server_ip = "192.168.1.1"; | |
$proxy = "http_proxy=http://192.168.1.1:8080"; | |
$kickstart = "ubuntu-12.04-LTS.ks" | |
if ($install) { | |
//default to ubuntu live system | |
?> | |
set base-url http://<?php echo $server_ip; ?>/iso/loop/install/netboot/ubuntu-installer/amd64 | |
kernel ${base-url}/linux | |
initrd ${base-url}/initrd.gz | |
imgargs linux auto=true ks=http://<?php echo $server_ip; ?>/ks/<?php echo $kickstart; ?> <?php echo $proxy; ?> | |
<?php | |
} | |
?> | |
boot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment