From c8ede8c05478d1f85a43d8029cb082c2a7d6e8cb Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 23 Jun 2009 20:53:19 +0000 Subject: Check for open ports only when required. --- cron-sh/security.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cron-sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 17ebb4a..9b4040e 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -133,7 +133,9 @@ if [[ -f ${CHKROOTKIT_TODAY} ]]; then mv -f ${CHKROOTKIT_TODAY} ${CHKROOTKIT_YESTERDAY} fi -netstat -pvlA inet,inet6 2> /dev/null > ${OPEN_PORT_TODAY}; +if [[ ${CHECK_OPEN_PORT} == yes ]]; then + netstat -pvlA inet,inet6 2> /dev/null > ${OPEN_PORT_TODAY}; +fi ionice -c3 -p $$ -- cgit v1.2.1