aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-06-12 13:46:02 -0400
committerRenato Botelho <garga@FreeBSD.org>2015-06-12 13:46:02 -0400
commitfbf36587a4c10add5fb46f807d56892c6c39b6d4 (patch)
tree7470ef3d15742f0f154d9eebc5857e6c3e033860 /config
parent47d45295c8f6522f175cc6a2e2db22e90275dd3c (diff)
downloadpfsense-packages-fbf36587a4c10add5fb46f807d56892c6c39b6d4.tar.gz
pfsense-packages-fbf36587a4c10add5fb46f807d56892c6c39b6d4.tar.bz2
pfsense-packages-fbf36587a4c10add5fb46f807d56892c6c39b6d4.zip
Prepare syslog-ng and ladvd for 2.3+RELENG_2_2_3
Diffstat (limited to 'config')
-rw-r--r--config/syslog-ng/syslog-ng.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/syslog-ng/syslog-ng.inc b/config/syslog-ng/syslog-ng.inc
index 818ae123..bbec3a7c 100644
--- a/config/syslog-ng/syslog-ng.inc
+++ b/config/syslog-ng/syslog-ng.inc
@@ -37,7 +37,11 @@ require_once('service-utils.inc');
if(!function_exists("filter_configure"))
require_once("filter.inc");
-define("SYSLOGNG_BASEDIR", "/usr/pbi/syslog-ng-" . php_uname("m") . "/");
+$pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
+if ($pf_version == "2.1" || $pf_version == "2.2")
+ define("SYSLOGNG_BASEDIR", "/usr/pbi/syslog-ng-" . php_uname("m") . "/");
+else
+ define("SYSLOGNG_BASEDIR", "/usr/local/");
function syslogng_get_real_interface_address($interface) {
$interface = convert_friendly_interface_to_real_interface_name($interface);