diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-20 22:47:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-20 22:47:50 +0000 |
commit | 44837e6bbbacb32934a1adb8ce180cf2c2f4921f (patch) | |
tree | 61d7db6e4f82ab881b69c5cf999bcbf14271144f /etc | |
parent | df792110179eafa5dbdddb8db500c7b60a996b5c (diff) | |
download | pfsense-44837e6bbbacb32934a1adb8ce180cf2c2f4921f.zip pfsense-44837e6bbbacb32934a1adb8ce180cf2c2f4921f.tar.gz |
Only process when booting
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 18 |
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) |