summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-17 12:19:41 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-02-17 12:20:34 -0300
commit838e1f6342b42c52e21d11942e35561c25194c1d (patch)
tree0e364c9ef1fa8f1d4f4057ecfd82c85691c4eea3 /etc/inc/services.inc
parentb67ec10c72c5f24639e72c9168e0f7e238f57b06 (diff)
downloadpfsense-838e1f6342b42c52e21d11942e35561c25194c1d.zip
pfsense-838e1f6342b42c52e21d11942e35561c25194c1d.tar.gz
Use correct parameter (bootfile-url) to configure netboot on DHCPdv6, it fixes #3421
Diffstat (limited to 'etc/inc/services.inc')
-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