summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-20 22:47:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-20 22:47:50 +0000
commit44837e6bbbacb32934a1adb8ce180cf2c2f4921f (patch)
tree61d7db6e4f82ab881b69c5cf999bcbf14271144f /etc/inc/interfaces.inc
parentdf792110179eafa5dbdddb8db500c7b60a996b5c (diff)
downloadpfsense-44837e6bbbacb32934a1adb8ce180cf2c2f4921f.zip
pfsense-44837e6bbbacb32934a1adb8ce180cf2c2f4921f.tar.gz
Only process when booting
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc18
1 files changed, 10 insertions, 8 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 36e81ec..f22b870 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -465,14 +465,16 @@ function interfaces_carp_bring_up_final() {
if($g['booting'])
echo "Waiting for final CARP interface bringup...";
$supress = intval(`/sbin/sysctl net.inet.carp.suppress_preempt | cut -d" " -f2`);
- while($supress > 0) {
- sleep(2);
- $supress = intval(`/sbin/sysctl net.inet.carp.suppress_preempt | cut -d" " -f2`);
- if($counter > 15)
- $supress = 0;
- $counter++;
- echo ".";
- }
+ if($g['booting']) {
+ while($supress > 0) {
+ sleep(2);
+ $supress = intval(`/sbin/sysctl net.inet.carp.suppress_preempt | cut -d" " -f2`);
+ if($counter > 15)
+ $supress = 0;
+ $counter++;
+ echo ".";
+ }
+ }
sleep(45);
foreach ($viparr as $vip) {
if($debugging)
OpenPOWER on IntegriCloud