|
Lines 102-108
Link Here
|
| 102 |
if cmp ${LOG}/dmesg.today ${TMP} >/dev/null 2>&1; then :; else |
102 |
if cmp ${LOG}/dmesg.today ${TMP} >/dev/null 2>&1; then :; else |
| 103 |
separator |
103 |
separator |
| 104 |
echo "${host} kernel log messages:" |
104 |
echo "${host} kernel log messages:" |
| 105 |
diff -b ${LOG}/dmesg.today ${TMP} | egrep "^>" |
105 |
diff -b ${LOG}/dmesg.today ${TMP} | egrep "^>" | sed -e 's/^> //' | sort | uniq -c | sort -rn |
| 106 |
mv ${LOG}/dmesg.today ${LOG}/dmesg.yesterday |
106 |
mv ${LOG}/dmesg.today ${LOG}/dmesg.yesterday |
| 107 |
mv ${TMP} ${LOG}/dmesg.today |
107 |
mv ${TMP} ${LOG}/dmesg.today |
| 108 |
fi |
108 |
fi |