Thank you for your reply. I will have a dig through the documentation and give it a try. Appreciate your time. Cheers, Alan
on reflection this line of questioning is probably better suited for the DRBL forum; posted here; https://sourceforge.net/p/drbl/discussion/Help/thread/d981bc792e/ please let me know if I need to wrap this one up and how I should? thanks
oh, appears that the 'php' file got truncated; <?php $mac = $_GET['mac']; $pool = range(ip2long('x.211'), ip2long('x.220')); // File for storing leases $lease_file = '/var/www/leases.json'; $leases = file_exists($lease_file) ? json_decode(file_get_contents($lease_file), true) : []; // Assign new if not leased if (!isset($leases[$mac])) { $used_ips = array_values($leases); foreach ($pool as $ip_long) { $ip = long2ip($ip_long); if (!in_array($ip, $used_ips)) { $leases[$mac] = $ip; break; } } file_put_contents($lease_file,...
oh, appears that the 'php' file got truncated;
Hi there, Thanks for reading. on the back of the drbl and clonezilla integration I would like to accomplish a linux boot using drbl and clonezilla which does not run a 'dhcpdiscover' and instead uses an assigned address from a 'boot.php' embeded script. essentially my client should boot into ipxe, run a php script and then boot 'clonezilla' or 'distro-blah' (I did have the clonezilla menu and such working but fiddled and lost the config) essentially the php script assigned 'ip' should be used to...
oh, appears that the 'php' file got truncated; <?php $mac = $_GET['mac']; $pool = range(ip2long('x.211'), ip2long('x.220')); // File for storing leases $lease_file = '/var/www/leases.json'; $leases = file_exists($lease_file) ? json_decode(file_get_contents($lease_file), true) : []; // Assign new if not leased if (!isset($leases[$mac])) { $used_ips = array_values($leases); foreach ($pool as $ip_long) { $ip = long2ip($ip_long); if (!in_array($ip, $used_ips)) { $leases[$mac] = $ip; break; } } file_put_contents($lease_file,...
Hi there, Thanks for reading. on the back of the drbl and clonezilla integration I would like to accomplish a linux boot using drbl and clonezilla which does not run a 'dhcpdiscover' and instead uses an assigned address from a 'boot.php' embeded script. essentially my client should boot into ipxe, run a php script and then boot 'clonezilla' or 'distro-blah' (I did have the clonezilla menu and such working but fiddled and lost the config) essentially the php script assigned 'ip' should be used to...