Explorar el Código

extra syslog check

Bob Mottram hace 7 años
padre
commit
21ecf61c13
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      src/freedombone-logging

+ 3
- 1
src/freedombone-logging Ver fichero

@@ -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