aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd/openbgpd.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-06-10 00:34:14 -0400
committerChris Buechler <cmb@pfsense.org>2010-06-10 00:34:14 -0400
commit3cadd57113a721bf41344f701d396e4964965ffb (patch)
treeed975cd222a9eb93d64707b0137ea51d94dfb491 /config/openbgpd/openbgpd.inc
parentaac6f344f0670283401fdf9ee71ab77bdef7cdcc (diff)
downloadpfsense-packages-3cadd57113a721bf41344f701d396e4964965ffb.tar.gz
pfsense-packages-3cadd57113a721bf41344f701d396e4964965ffb.tar.bz2
pfsense-packages-3cadd57113a721bf41344f701d396e4964965ffb.zip
fix startup script and FIB update option
Diffstat (limited to 'config/openbgpd/openbgpd.inc')
-rw-r--r--config/openbgpd/openbgpd.inc7
1 files changed, 5 insertions, 2 deletions
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