2014-03-07, 08:51
Hi there,
I see this script on the homepage:
Can you show me how to make the script "real_boot_script.php" change the filename based on client's MAC ?
For example, a client with MAC aa-bb-cc-dd-ee-ff requests the DHCP. I want DHCP to transfer the boot script aa-bb-cc-dd-ee-ff.php to it. If this file is not existed, the default.php will be chose.
I see this script on the homepage:
Code:
if exists user-class and option user-class = "iPXE" {
filename "http://my.web.server/real_boot_script.php";
} else {
filename "undionly.kpxe";
}
Can you show me how to make the script "real_boot_script.php" change the filename based on client's MAC ?
For example, a client with MAC aa-bb-cc-dd-ee-ff requests the DHCP. I want DHCP to transfer the boot script aa-bb-cc-dd-ee-ff.php to it. If this file is not existed, the default.php will be chose.