summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanipv6
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-19 16:23:18 +0000
committerErmal <eri@pfsense.org>2013-03-19 16:23:18 +0000
commit673c2f8b82066f44b603b9dbb22030c519ad069b (patch)
tree83ec501a9f6fe020771498f14132f3769e5bff61 /etc/rc.newwanipv6
parentfa5bf66fc5a604c7b3ed64277d262cb6c2f4c8f2 (diff)
downloadpfsense-673c2f8b82066f44b603b9dbb22030c519ad069b.zip
pfsense-673c2f8b82066f44b603b9dbb22030c519ad069b.tar.gz
Actually enforce for not dhcp6 interfaces
Diffstat (limited to 'etc/rc.newwanipv6')
-rwxr-xr-xetc/rc.newwanipv64
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6
index 0f30668..1bd4553 100755
--- a/etc/rc.newwanipv6
+++ b/etc/rc.newwanipv6
@@ -79,6 +79,10 @@ if (empty($interface)) {
exit;
}
+//Do not process while booting
+if($g['booting'] && $config['interfaces'][$interface]['ipaddrv6'] != "dhcp6")
+ exit;
+
if(empty($curwanipv6) || !is_ipaddrv6($curwanipv6)) {
log_error("rc.newwanipv6: Failed to update {$interface} IPv6, restarting...");
// send_event("interface reconfigure {$interface}");
OpenPOWER on IntegriCloud