aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-17 04:10:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-17 04:10:07 +0000
commit8b07f9e10a82f2457c7b8cc5f78efa90ea3414d9 (patch)
tree48730fda7089636468691dff689ebb0dd8eeab7e
parent6bcdfc524daec5cddaf5b52898a648fee67d1500 (diff)
downloadpfsense-packages-8b07f9e10a82f2457c7b8cc5f78efa90ea3414d9.tar.gz
pfsense-packages-8b07f9e10a82f2457c7b8cc5f78efa90ea3414d9.tar.bz2
pfsense-packages-8b07f9e10a82f2457c7b8cc5f78efa90ea3414d9.zip
Note that the rc file should not be edited
-rw-r--r--packages/openbgpd/openbgpd.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc
index ffbe6d46..ed7fc959 100644
--- a/packages/openbgpd/openbgpd.inc
+++ b/packages/openbgpd/openbgpd.inc
@@ -83,8 +83,7 @@ function openbgpd_install_conf() {
$conffile .= "}\n";
}
}
-
-
+
// Handle neighbors that do not have a group assigned to them
foreach($openbgpd_neighbors as $neighbor) {
$used_this_item = false;
@@ -117,7 +116,8 @@ function openbgpd_install_conf() {
// Create rc.d file
$fd = fopen("/usr/local/etc/rc.d/bgpd.sh","w");
- fwrite($fd, "#!/bin/sh\n");
+ fwrite($fd, "#!/bin/sh\n\n");
+ fwrite($fd, "# This file was created by the pfSense package manager. Do not edit!\n\n");
fwrite($fd, "bgpd\n");
fclose($fd);
exec("chmod a+rx /usr/local/etc/rc.d/bgpd.sh");