aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-07-24 23:14:47 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-07-24 23:14:47 +0000
commit97535e1b1f1f0d6a14218be13ad495909d338459 (patch)
treee50e8e258cdc73571362c8bbacf637d8edb8b0a8 /cron-sh
parent7757337c8d677c991a0dfd59a1d4116b1c9a917c (diff)
downloadmsec-97535e1b1f1f0d6a14218be13ad495909d338459.tar
msec-97535e1b1f1f0d6a14218be13ad495909d338459.tar.gz
msec-97535e1b1f1f0d6a14218be13ad495909d338459.tar.bz2
msec-97535e1b1f1f0d6a14218be13ad495909d338459.tar.xz
msec-97535e1b1f1f0d6a14218be13ad495909d338459.zip
* use TTY_WARN instead of TTYLOG_WARN (David Harris).
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/promisc_check.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-sh/promisc_check.sh b/cron-sh/promisc_check.sh
index 09df5d9..d6867b9 100755
--- a/cron-sh/promisc_check.sh
+++ b/cron-sh/promisc_check.sh
@@ -10,9 +10,9 @@ Syslog() {
}
Ttylog() {
- if [[ ${TTYLOG_WARN} == yes ]]; then
+ if [[ ${TTY_WARN} == yes ]]; then
w | grep -v "load\|TTY" | grep '^root' | awk '{print $2}' | while read line; do
- echo -e "${1}" > /dev/$i
+ echo -e "${1}" > /dev/$line
done
fi
}