I cannot promise that these are the last fixes, but I hope so, at least for a while
1. The output when no connection to the internet is not that good, and I suggest the following upgrade since tha last one:
Code:
$ diff system-infoV04 system-infoV
784c784,793
< echo -e" No connection to pastebin.ubuntu.com " | tee -a "$linklog"
---
> no_connect="No connection to pastebin.ubuntu.com at ${startt}"
> echo -e "$no_connect" >> "$linklog"
> echo -e "$redback $no_connect $resetvid"
> nl
> echo -e "Either rerun the script after connecting to the internet, or"
> echo -e "upload the file '$report'"
> echo -e "via another computer: 'copy & paste' to"
> nl
> echo -e "https://paste.ubuntu.com/"
> nl
See attached screenshot with the output after applying this patch.
2. There is an error output when running Ubuntu Impish Indri live because there is no media-info file.
Code:
$ diff system-infoV05 system-infoV06
598c598
< if [ -d /var/log/installer/ ]
---
> if [ -f /var/log/installer/media-info ]
In order to make things easier, I suggest the following patch file relative to what I think is the current version uploaded by @MAFoElffen:
Code:
--- system-info 2021-09-08 06:13:39.000000000 +0200
+++ system-infoV06 2021-09-08 11:32:32.149799085 +0200
@@ -1,12 +1,13 @@
#!/bin/bash
## MAFoElffen, <mafoelffen@ubuntu.com>, 2021.08.19
-## Version 00.07-03, 2021.09.07
## Contributers:
## sudodus <nio.wiklund@gmail.com>, 2021.08.25
## Doug S, 2021.08.22
## oldfred, 2021.08.20
## Filename: support-info
+## Version:
+version="Version: 00.07-04, Script Date: 2021.09.08"
## Description: Report Finds Machine System And Hardware Related Information.
## Purpose: For support use at "UbuntuForums.org".
#########################################################################
@@ -32,8 +33,6 @@
########################################################################
#### Variables
########################################################################
-# Versioning
-version="Version: 00.07-03, Script Date: 2021.09.06"
arg1=$1
# Set Report filename and path to
sname="${0##*/}" # flexible, needs quoting everywhere if spaces
@@ -580,9 +579,9 @@
{
# Gets the original installation date. Called once by GetOtherDetails().
# Makes best logical efforts.
- if [ $(sudo find /var/log/installer/ -type f | wc -l) -ne 0 ]
+ if [ $(sudo find /var/log/installer/ -type f 2> /dev/null | wc -l) -ne 0 ]
then
- installer_date=$(sudo find /var/log/installer/ -type f 2> /dev/null | -printf "%T+\n" | sort| head -1)
+ installer_date=$(sudo find /var/log/installer/ -type f -printf "%T+\n" | sort| head -1)
installer_date="Original Installation Date: ${setansi} ${installer_date%.*} $ransi"
else
# sudo find / -maxdepth 1 -type d -printf "%T+ %p\n"| sort| head -1 # uncomment for debugging
@@ -596,7 +595,7 @@
{
# Gets the original install media data. Called once by GetOtherDetails().
# Only displays if it was installed traditionally
- if [ -d /var/log/installer/ ]
+ if [ -f /var/log/installer/media-info ]
then
installer_media=$(sudo head -n 1 /var/log/installer/media-info | awk '{print "Original Installation Media: "$0}' )
echo -e "$installer_media"
@@ -782,7 +781,16 @@
nl
fi
else
- echo -e" No connection to pastebin.ubuntu.com " | tee -a "$linklog"
+ no_connect="No connection to pastebin.ubuntu.com at ${startt}"
+ echo -e "$no_connect" >> "$linklog"
+ echo -e "$redback $no_connect $resetvid"
+ nl
+ echo -e "Either rerun the script after connecting to the internet, or"
+ echo -e "upload the file '$report'"
+ echo -e "via another computer: 'copy & paste' to"
+ nl
+ echo -e "https://paste.ubuntu.com/"
+ nl
fi
fi
else
Bookmarks