aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/boca-submit-log11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/boca-submit-log b/tools/boca-submit-log
index 40a6fb7..35577d7 100644
--- a/tools/boca-submit-log
+++ b/tools/boca-submit-log
@@ -32,6 +32,11 @@ for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
[ -f /root/.loglshw ] || touch /root/.loglshw
diff /root/.loglshw /root/.loglshw.tmp > /root/.loglshw.diff 2>/dev/null
reslshw=$?
+ tail -n 500 /var/log/boca-fixes.out > /root/.logupd.tmp 2>/dev/null
+ tail -n 500 /var/log/boca-fixes.err >> /root/.logupd.tmp 2>/dev/null
+ [ -f /root/.logupd ] || touch /root/.logupd
+ diff /root/.logupd /root/.logupd.tmp > /root/.logupd.diff 2>/dev/null
+ resupd=$?
journalctl | grep -i mount | tail -n 500 > /root/.logfs.tmp
[ -f /root/.logfs ] || touch /root/.logfs
@@ -54,7 +59,7 @@ for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
reskeys=0
fi
- if [ "$res" != "0" -o "$resfs" != "0" -o "$reslshw" != "0" -o "$reskfs" != "0" -o "$reskeys" != "0" ]; then
+ if [ "$res" != "0" -o "$resfs" != "0" -o "$reslshw" != "0" -o "$resupd" != "0" -o "$reskfs" != "0" -o "$reskeys" != "0" ]; then
for i in uuencode wget tr perl sha256sum cut; do
p=`which $i`
if [ -x "$p" ]; then
@@ -80,6 +85,8 @@ for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
grep "^>" /root/.logfs.diff | uuencode -m zzzzzzzzzz | grep -v "begin-base64.*zzzzzzzzzz" | perl -MURI::Escape -lne 'print uri_escape($_)' >> $temp
echo -n "&loglshw=" >> $temp
grep "^>" /root/.loglshw.diff | uuencode -m zzzzzzzzzz | grep -v "begin-base64.*zzzzzzzzzz" | perl -MURI::Escape -lne 'print uri_escape($_)' >> $temp
+ echo -n "&logupd=" >> $temp
+ grep "^>" /root/.logupd.diff | uuencode -m zzzzzzzzzz | grep -v "begin-base64.*zzzzzzzzzz" | perl -MURI::Escape -lne 'print uri_escape($_)' >> $temp
echo -n "&logkfs=" >> $temp
grep "^>" /root/.logkfs.diff | uuencode -m zzzzzzzzzz | grep -v "begin-base64.*zzzzzzzzzz" | perl -MURI::Escape -lne 'print uri_escape($_)' >> $temp
echo -n "&logkeys=" >> $temp
@@ -102,6 +109,8 @@ for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
fi
[ -f /root/.logsession.tmp ] && mv /root/.logsession.tmp /root/.logsession
[ -f /root/.logkeys.tmp ] && mv /root/.logkeys.tmp /root/.logkeys
+ [ -f /root/.loglshw.tmp ] && mv /root/.loglshw.tmp /root/.loglshw
+ [ -f /root/.logupd.tmp ] && mv /root/.logupd.tmp /root/.logupd
[ -f /root/.logfs.tmp ] && mv /root/.logfs.tmp /root/.logfs
[ -f /root/.logkfs.tmp ] && mv /root/.logkfs.tmp /root/.logkfs
[ "$zcount" == "20" ] || sleep 13