summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.newwanip
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-05-07 19:59:42 -0500
committerChris Buechler <cmb@pfsense.org>2016-05-07 19:59:42 -0500
commitc4b5c8bee551025cb55fd755b73b0a7275679c3e (patch)
treef2eda5d8855768bf53e78e6552b3686b65fbaec3 /src/etc/rc.newwanip
parentef945b86ae9cd8ec78bf06ff10635ddf5ba704f3 (diff)
downloadpfsense-c4b5c8bee551025cb55fd755b73b0a7275679c3e.zip
pfsense-c4b5c8bee551025cb55fd755b73b0a7275679c3e.tar.gz
Setup gateway monitors and exit in rc.newwanip(v6) if system is booting. Ticket #6186
Diffstat (limited to 'src/etc/rc.newwanip')
-rwxr-xr-xsrc/etc/rc.newwanip9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/etc/rc.newwanip b/src/etc/rc.newwanip
index d7afb2a..05eb960 100755
--- a/src/etc/rc.newwanip
+++ b/src/etc/rc.newwanip
@@ -190,6 +190,15 @@ if (!empty($gre)) {
}
}
+if (platform_booting) {
+ // avoid race conditions in many of the below functions that occur during boot
+ // setting up gateways monitor doesn't seem to have issues here, and fixes the
+ // most commonly encountered bugs from earlier versions when everything below
+ // was skipped during boot
+ setup_gateways_monitor();
+ exit;
+}
+
/*
* We need to force sync VPNs on such even when the IP is the same for dynamic interfaces.
* Even with the same IP the VPN software is unhappy with the IP disappearing, and we
OpenPOWER on IntegriCloud