diff options
Diffstat (limited to 'config/quagga_ospfd')
-rw-r--r-- | config/quagga_ospfd/quagga_ospfd.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc index 591b9772..84bf8c4d 100644 --- a/config/quagga_ospfd/quagga_ospfd.inc +++ b/config/quagga_ospfd/quagga_ospfd.inc @@ -247,10 +247,12 @@ function quagga_ospfd_install_conf() { if (is_ipaddr($ospfd_conf['carpstatusip'])) { $carpcheckinterface = trim(find_carp_interface($ospfd_conf['carpstatusip'])); $carp_ip_status_check = <<<EOF + CARP_STATUS=`/sbin/ifconfig ${carpcheckinterface} | /usr/bin/grep carp: | /usr/bin/awk '{print $2;}'` if [ \${CARP_STATUS} != "MASTER" ]; then exit; fi + EOF; } |