From 21ecf61c13ea3c168a47adb6a46a0f1a9b137442 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Apr 2018 11:43:11 +0100 Subject: [PATCH] extra syslog check --- src/freedombone-logging | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-logging b/src/freedombone-logging index eafe5be0..80d8b5ba 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -92,7 +92,9 @@ function turn_logging_off { function turn_off_rsys_logging { if ! grep -q '/var/log/auth.log' /etc/rsyslog.conf; then - return + if ! grep -q '/var/log/kern.log' /etc/rsyslog.conf; then + return + fi fi sed -i 's|mail,news.none.*|mail,news.none /dev/null|g' /etc/rsyslog.conf sed -i 's|auth,authpriv.\*.*|auth,authpriv.\* /dev/null|g' /etc/rsyslog.conf