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