Browse Source

extra syslog check

Bob Mottram 7 years ago
parent
commit
21ecf61c13
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-logging

+ 3
- 1
src/freedombone-logging View File

@@ -92,7 +92,9 @@ function turn_logging_off {
92 92
 
93 93
 function turn_off_rsys_logging {
94 94
     if ! grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
95
-        return
95
+        if ! grep -q '/var/log/kern.log' /etc/rsyslog.conf; then
96
+            return
97
+        fi
96 98
     fi
97 99
     sed -i 's|mail,news.none.*|mail,news.none      /dev/null|g' /etc/rsyslog.conf
98 100
     sed -i 's|auth,authpriv.\*.*|auth,authpriv.\*         /dev/null|g' /etc/rsyslog.conf