aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/promisc_check.sh16
1 files changed, 7 insertions, 9 deletions
diff --git a/cron-sh/promisc_check.sh b/cron-sh/promisc_check.sh
index cd38962..09df5d9 100755
--- a/cron-sh/promisc_check.sh
+++ b/cron-sh/promisc_check.sh
@@ -28,13 +28,17 @@ LogPromisc() {
}
-if [[ -f /etc/security/msec/security.conf ]]; then
- . /etc/security/msec/security.conf
+if [[ -f /var/lib/msec/security.conf ]]; then
+ . /var/lib/msec/security.conf
else
- echo "/etc/security/msec/security.conf doesn't exist."
+ echo "/var/lib/msec/security.conf doesn't exist."
exit 1
fi
+if [[ -f /etc/security/msec/security.conf ]]; then
+ . /etc/security/msec/security.conf
+fi
+
if tail /var/log/security.log | grep -q "promiscuous"; then
# Dont flood with warning.
exit 0
@@ -42,12 +46,6 @@ fi
# Check if a network interface is in promiscuous mode...
-if [[ -f /etc/security/msec/security.conf ]]; then
- . /etc/security/msec/security.conf
-else
- exit 1
-fi
-
if [[ ${CHECK_PROMISC} == no ]]; then
exit 0;
fi