diff --git a/etc/periodic/security/700.kernelmsg b/etc/periodic/security/700.kernelmsg index b4fcfce33780..c1af58448f85 100755 --- a/etc/periodic/security/700.kernelmsg +++ b/etc/periodic/security/700.kernelmsg @@ -52,10 +52,10 @@ case "$daily_status_security_kernelmsg_enable" in cp ${TMP} ${LOG}/dmesg.today || rc=3 fi + echo "" + echo "${host} kernel log messages:" if ! cmp ${LOG}/dmesg.today ${TMP} >/dev/null 2>&1; then [ $rc -lt 1 ] && rc=1 - echo "" - echo "${host} kernel log messages:" diff -b ${LOG}/dmesg.today ${TMP} | egrep "^>" mv ${LOG}/dmesg.today ${LOG}/dmesg.yesterday || rc=3 mv ${TMP} ${LOG}/dmesg.today || rc=3