aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/promisc_check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh/promisc_check.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
}