From 4e9cd82858fa2ae487bc7ff3088ef195dbff262b Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 8 Mar 2007 19:48:47 +0000 Subject: [PATCH] Allow for basic network boot configuration In Use By: Seth --- etc/inc/services.inc | 18 +++++--- usr/local/www/services_dhcp.php | 77 +++++++++++++++++++++++++++++++-- 2 files changed, 86 insertions(+), 9 deletions(-) diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 8b2f7348c9..a9f95b9ab5 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -197,6 +197,13 @@ EOPP; if ($dhcpifconf['domain']) { $dnscfg .= " option domain-name \"{$dhcpifconf['domain']}\";\n"; } + if (isset($dhcpifconf['ddnsupdate'])) { + if($dhcpifconf['ddnsdomain'] <> "") { + $dnscfg .= " ddns-domainname \"{$dhcpifconf['ddnsdomain']}\";\n"; + } + $dnscfg .= " ddns-update-style interim;\n"; + } + if (is_array($dhcpifconf['dnsserver']) && ($dhcpifconf['dnsserver'][0])) { $dnscfg .= " option domain-name-servers " . join(",", $dhcpifconf['dnsserver']) . ";"; @@ -251,11 +258,12 @@ EOD; $dhcpdconf .= " option netbios-node-type 8;\n"; } - if ($dhcpifconf['next-server']) - $dhcpdconf .= " next-server {$dhcpifconf['next-server']};\n"; - if ($dhcpifconf['filename']) - $dhcpdconf .= " filename \"{$dhcpifconf['filename']}\";\n"; - + if(isset($dhcpifconf['netboot'])) { + if (($dhcpifconf['next-server'] <> "") && ($dhcpifconf['filename'] <> "")) { + $dhcpdconf .= " next-server {$dhcpifconf['next-server']};\n"; + $dhcpdconf .= " filename \"{$dhcpifconf['filename']}\";\n"; + } + } $dhcpdconf .= << - @@ -390,7 +424,7 @@ function enable_change(enable_over) { Failover peer IP: -
+
Leave blank to disable. Enter the REAL address of the other machine. Machines must be using CARP. @@ -417,6 +451,41 @@ function enable_change(enable_over) { + + Dynamic DNS + +
+ - Show Dynamic DNS +
+ + + + + Enable Network booting + +
+ - Show Network booting +
+ + +