summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanipv6
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-24 20:36:12 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-24 20:36:12 +0100
commit96fbd43a0b570c9738c8c5761aeac76830955996 (patch)
tree638dd25db88cbf225a97235aa2b91a3890e34857 /etc/rc.newwanipv6
parent5987261f1a5eba83e5bcec740fd8ebdb593ddf82 (diff)
downloadpfsense-96fbd43a0b570c9738c8c5761aeac76830955996.zip
pfsense-96fbd43a0b570c9738c8c5761aeac76830955996.tar.gz
DHCP6 might start after bootup
Revert "Gather DNS information and return on bootup" This reverts commit c2847e0faa781712f6419c8f305c97df66d9d233.
Diffstat (limited to 'etc/rc.newwanipv6')
-rwxr-xr-xetc/rc.newwanipv68
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6
index fe2d68b..5b9ff86 100755
--- a/etc/rc.newwanipv6
+++ b/etc/rc.newwanipv6
@@ -80,6 +80,10 @@ if (empty($interface)) {
return;
}
+//Do not process while booting
+if ($g['booting'] && $config['interfaces'][$interface]['ipaddrv6'] != "dhcp6")
+ return;
+
/*
* NOTE: Take care of openvpn and similar if you generate the event to reconfigure an interface.
* i.e. OpenVPN might be in tap mode and not have an ip.
@@ -116,10 +120,6 @@ if (!empty($new_domain_name))
if (is_ipaddrv6($curwanipv6))
@file_put_contents("{$g['vardb_path']}/{$interface}_ipv6", $curwanipv6);
-//Do not process while booting
-if ($g['booting'])
- return;
-
log_error("rc.newwanipv6: on (IP address: {$curwanipv6}) (interface: {$interface}) (real interface: {$interface_real}).");
$oldipv6 = "";
OpenPOWER on IntegriCloud