summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc13
1 files changed, 5 insertions, 8 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 77f1ae0..3e6a709 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -994,6 +994,9 @@ function services_dhcpdv6_configure() {
}
}
+ if(isset($dhcpv6ifconf['netboot']) && !empty($dhcpv6ifconf['bootfile_url']))
+ $custoptionsv6 .= "option dhcp6.bootfile-url code 59 = string;\n";
+
$dhcpdv6conf = <<<EOD
option domain-name "{$syscfg['domain']}";
@@ -1124,14 +1127,8 @@ EOD;
// net boot information
if(isset($dhcpv6ifconf['netboot'])) {
- if ($dhcpv6ifconf['nextserver'] <> "") {
- $dhcpdv6conf .= " next-server {$dhcpv6ifconf['nextserver']};\n";
- }
- if ($dhcpv6ifconf['filename'] <> "") {
- $dhcpdv6conf .= " filename \"{$dhcpv6ifconf['filename']}\";\n";
- }
- if ($dhcpv6ifconf['rootpath'] <> "") {
- $dhcpdv6conf .= " option root-path \"{$dhcpv6ifconf['rootpath']}\";\n";
+ if (!empty($dhcpv6ifconf['bootfile_url'])) {
+ $dhcpdv6conf .= " option dhcp6.bootfile-url \"{$dhcpv6ifconf['bootfile_url']}\";\n";
}
}
OpenPOWER on IntegriCloud