diff options
Diffstat (limited to 'cron-sh/security_check.sh')
-rwxr-xr-x | cron-sh/security_check.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh index aafa294..b4842b2 100755 --- a/cron-sh/security_check.sh +++ b/cron-sh/security_check.sh @@ -36,7 +36,7 @@ Syslog() { Ttylog() { if [[ ${TTY_WARN} == yes ]]; then for i in `w | grep -v "load\|TTY" | awk '{print $2}'` ; do - echo -e "${1}" > /dev/$i + cat ${1} > /dev/${i} done fi } @@ -259,6 +259,7 @@ if [[ ${CHECK_OPEN_PORT} == yes ]]; then fi fi + ### Report if [[ -s ${SECURITY} ]]; then Syslog ${SECURITY} |