The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transfer boot file base on client's MAC
2014-03-07, 08:51
Post: #1
Transfer boot file base on client's MAC
Hi there,

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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Transfer boot file base on client's MAC - vielktus - 2014-03-07 08:51



User(s) browsing this thread: 1 Guest(s)