diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-17 20:41:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-17 20:41:14 +0000 |
commit | 16b671e2152b336c368855d28d4ec05293d4cb1c (patch) | |
tree | d38c784f5ed873a9b29f3b124aa8e1ac71172233 /etc/inc/interfaces.inc | |
parent | 26f84e226b19cb92d2c309daafbf2a579a59bc0d (diff) | |
download | pfsense-16b671e2152b336c368855d28d4ec05293d4cb1c.zip pfsense-16b671e2152b336c368855d28d4ec05293d4cb1c.tar.gz |
Ticket #1677 fixes
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 0b7c6d7..a907ccd 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -506,6 +506,14 @@ function interfaces_carp_bring_up_final() { /* could not locate an array, return */ if(!is_array($viparr)) return; + $havecarp = false; + foreach ($viparr as $vip) { + /* bail if this isn't a carp VIP */ + if ($vip['mode'] == "carp") + $havecarp = true; + } + if($havecarp == false) + return; $carp_instances_counter = 0; $counter = 0; if($g['booting']) @@ -520,10 +528,6 @@ function interfaces_carp_bring_up_final() { $counter++; echo "."; } - for($x=0; $x<23; $x++) { - sleep(2); - echo "."; - } echo " done.\n"; } foreach ($viparr as $vip) { |