From 3cadd57113a721bf41344f701d396e4964965ffb Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Thu, 10 Jun 2010 00:34:14 -0400 Subject: fix startup script and FIB update option --- config/openbgpd/openbgpd.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc index 19ef8b43..4bf352c9 100644 --- a/config/openbgpd/openbgpd.inc +++ b/config/openbgpd/openbgpd.inc @@ -55,6 +55,9 @@ function openbgpd_install_conf() { // Setup AS # if($openbgpd_conf['asnum']) $conffile .= "AS {$openbgpd_conf['asnum']}\n"; + + if($openbgpd_conf['fibupdate']) + $conffile .= "fib-update {$openbgpd_conf['fibupdate']}\n"; // Setup holdtime if defined. Default is 90. if($openbgpd_conf['holdtime']) @@ -155,7 +158,7 @@ function openbgpd_install_conf() { fwrite($fd, "# This file was created by the pfSense package manager. Do not edit!\n\n"); fwrite($fd, "NUMBGPD=`ps auxw | grep bgpd | grep parent | grep -v grep | wc -l | awk '{print \$1}'`\n"); fwrite($fd, "# echo \$NUMBGPD\n"); - fwrite($fd, "if [ \$NUMBGPD -lt 0 ] ; then\n"); + fwrite($fd, "if [ \$NUMBGPD -lt 1 ] ; then\n"); fwrite($fd, " /usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf\n"); fwrite($fd, "fi\n"); fclose($fd); @@ -283,4 +286,4 @@ function is_openbgpd_running() { return false; } -?> +?> \ No newline at end of file -- cgit v1.2.3