diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-09 15:46:22 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-09 15:46:22 +0000 |
commit | 8f1135461ee0e2621b23e75824bed3174e909d1b (patch) | |
tree | d91998a46dd7bde1c2c7e8db2d6895fe904edb64 /cron-sh/promisc_check.sh | |
parent | 15cf5616a22ee439df57846774e2f6d524a8c713 (diff) | |
download | msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.gz msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.bz2 msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.xz msec-8f1135461ee0e2621b23e75824bed3174e909d1b.zip |
*** empty log message ***
Diffstat (limited to 'cron-sh/promisc_check.sh')
-rwxr-xr-x | cron-sh/promisc_check.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cron-sh/promisc_check.sh b/cron-sh/promisc_check.sh index 2297595..a2bdaa4 100755 --- a/cron-sh/promisc_check.sh +++ b/cron-sh/promisc_check.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Writen by Vandoorselaere Yoann, +# <yoann@mandrakesoft.com> + if [ -f /etc/security/msec/security.conf ]; then . /etc/security/msec/security.conf else @@ -13,13 +16,13 @@ if tail /var/log/security.log | grep -q "promiscuous"; then fi Syslog() { - if [ "${SYSLOG_WARN}" == "yes" ]; then + if [[ ${SYSLOG_WARN} == yes ]]; then /sbin/initlog --string="${1}" fi } Ttylog() { - if [ "${TTYLOG_WARN}" == "yes" ]; then + if [[ ${TTYLOG_WARN} == yes ]]; then w | grep -v "load\|TTY" | awk '{print $2}' | while read line; do echo -e "${1}" > /dev/$i done @@ -49,7 +52,7 @@ else exit 1 fi -if [ ${CHECK_PROMISC}=="no" ]; then +if [[ ${CHECK_PROMISC} == no ]]; then exit 0; fi |