aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logexternal.php2
-rw-r--r--tools/boca-submit-log2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/logexternal.php b/src/logexternal.php
index 36918bf..114c1d9 100644
--- a/src/logexternal.php
+++ b/src/logexternal.php
@@ -51,6 +51,8 @@ if(isset($_POST["comp"]) && $_POST["comp"] != "" ) {
@file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.logfs', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['logfs']), LOCK_EX | FILE_APPEND);
if(isset($_POST['loglshw']))
@file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.loglshw', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['loglshw']), LOCK_EX | FILE_APPEND);
+ if(isset($_POST['logupd']))
+ @file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.logupd', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['logupd']), LOCK_EX | FILE_APPEND);
if(isset($_POST['logkfs']))
@file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.logkfs', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['logkfs']), LOCK_EX | FILE_APPEND);
if(isset($_POST['logkeys']))
diff --git a/tools/boca-submit-log b/tools/boca-submit-log
index 1c4b142..40a6fb7 100644
--- a/tools/boca-submit-log
+++ b/tools/boca-submit-log
@@ -28,7 +28,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
[ -f /root/.logsession ] || touch /root/.logsession
diff /root/.logsession /root/.logsession.tmp > /root/.logsession.diff 2>/dev/null
res=$?
- lshw | > /root/.loglshw.tmp
+ lshw > /root/.loglshw.tmp 2>/dev/null
[ -f /root/.loglshw ] || touch /root/.loglshw
diff /root/.loglshw /root/.loglshw.tmp > /root/.loglshw.diff 2>/dev/null
reslshw=$?