2015-06-11 12:49:40 +02:00
|
|
|
--- sensor/pcap_agent-sancp.tcl.orig 2014-03-29 00:41:36 UTC
|
|
|
|
+++ sensor/pcap_agent-sancp.tcl
|
2014-08-16 20:38:25 +02:00
|
|
|
@@ -1,6 +1,4 @@
|
|
|
|
#!/bin/sh
|
|
|
|
-# Run tcl from users PATH \
|
|
|
|
-exec tclsh "$0" "$@"
|
|
|
|
|
|
|
|
# $Id: pcap_agent-sancp.tcl,v 1.2 2008/05/29 19:25:50 hanashi Exp $ #
|
|
|
|
|
2015-06-11 12:49:40 +02:00
|
|
|
@@ -754,13 +752,13 @@ foreach arg $argv {
|
2014-08-16 20:38:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Parse the config file here
|
|
|
|
-# Default location is /etc/pcap_agent.conf or pwd
|
|
|
|
+# Default location is /usr/local/etc/sguil-sensor/pcap_agent.conf or pwd
|
|
|
|
if { ![info exists CONF_FILE] } {
|
|
|
|
|
|
|
|
# No conf file specified check the defaults
|
|
|
|
- if { [file exists /etc/pcap_agent.conf] } {
|
|
|
|
+ if { [file exists /usr/local/etc/sguil-sensor/pcap_agent.conf] } {
|
|
|
|
|
|
|
|
- set CONF_FILE /etc/pcap_agent.conf
|
|
|
|
+ set CONF_FILE /usr/local/etc/sguil-sensor/pcap_agent.conf
|
|
|
|
|
|
|
|
} elseif { [file exists ./pcap_agent.conf] } {
|
|
|
|
|
2015-06-11 12:49:40 +02:00
|
|
|
@@ -769,7 +767,7 @@ if { ![info exists CONF_FILE] } {
|
2014-08-16 20:38:25 +02:00
|
|
|
} else {
|
|
|
|
|
|
|
|
puts "Couldn't determine where the pcap_agent.tcl config file is"
|
|
|
|
- puts "Looked for /etc/pcap_agent.conf and ./pcap_agent.conf."
|
|
|
|
+ puts "Looked for /usr/local/etc/sguil-sensor/pcap_agent.conf and ./pcap_agent.conf."
|
|
|
|
DisplayUsage $argv0
|
|
|
|
|
|
|
|
}
|