aboutsummaryrefslogtreecommitdiffstats
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
parentaac6f344f0670283401fdf9ee71ab77bdef7cdcc (diff)
downloadpfsense-packages-3cadd57113a721bf41344f701d396e4964965ffb.tar.gz
pfsense-packages-3cadd57113a721bf41344f701d396e4964965ffb.tar.bz2
pfsense-packages-3cadd57113a721bf41344f701d396e4964965ffb.zip
fix startup script and FIB update option
-rw-r--r--config/openbgpd/openbgpd.inc7
-rwxr-xr-xpkg_config.7.xml2
-rwxr-xr-xpkg_config.8.xml2
3 files changed, 7 insertions, 4 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
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index 02da8937..9e1dfefd 100755
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -412,7 +412,7 @@
<descr>OpenBGPD is a FREE implementation of the Border Gateway Protocol, Version 4. It allows ordinary machines to be used as routers exchanging routes with other systems speaking the BGP protocol.</descr>
<category>NET</category>
<config_file>http://www.pfsense.com/packages/config/openbgpd/openbgpd.xml</config_file>
- <version>0.4</version>
+ <version>0.4.1</version>
<status>STABLE</status>
<required_version>1.3</required_version>
<configurationfile>openbgpd.xml</configurationfile>
diff --git a/pkg_config.8.xml b/pkg_config.8.xml
index b3fa7d46..e9099323 100755
--- a/pkg_config.8.xml
+++ b/pkg_config.8.xml
@@ -315,7 +315,7 @@
<descr>OpenBGPD is a FREE implementation of the Border Gateway Protocol, Version 4. It allows ordinary machines to be used as routers exchanging routes with other systems speaking the BGP protocol.</descr>
<category>NET</category>
<config_file>http://www.pfsense.com/packages/config/openbgpd/openbgpd.xml</config_file>
- <version>0.5</version>
+ <version>0.5.1</version>
<status>STABLE</status>
<pkginfolink>http://doc.pfsense.org/index.php/OpenBGPD_package</pkginfolink>
<required_version>1.3</required_version>