The attached script is intended to gather some baseline information about a Tinycore Linux installation. The design goals of the script
were as follows:
1. No dependencies. Use only commands that are part of the base system.
2. Keep the results file generated small so that it can be an attachment in a users post.
3. Format the results file to make it easier to review.
4. Try to stay focused on generic and Tinycore specific data.
5. Optimize for speed where possible.
On my old 800 Mhz, 512 Meg RAM, PATA drives, TC4 system it takes about 50 seconds to complete.
On my Dell E310 2.4Ghz, 3 Gig RAM, SATA drives, TC10 system it takes about 11 seconds to complete.
About 80% of the time is spent on MD5 checks.
The results are saved in a file called TCscanYYMMDDHHMMSS.txt where YYMMDDHHMMSS is a date code.
The format of the file is as follows:
It starts with a time stamp and a Table of Contents listing which sections were created and what they contain
Sun Jun 7 09:58:50 UTC 2020
Table of Contents
Sect 1 TC version, uname, tcedir, mydata.tgz status, /etc/sysconfig/
Sect 2 tcemirror, repo URL, repo URL reachable, showbootcodes, Some CPU flags
Sect 3 free, /proc/swaps, mounts, disk free
Sect 4 ifconfig, route -n, /etc/resolv.conf
Sect 5 lsmod
Sect 6 .xsession, .profile
Sect 7 bootsync.sh, bootlocal.sh, .filetool.lst, .xfiletool.lst
Sect 8 onboot.lst, ondemand
Sect 9 Missing md5 files, Failed md5 checks, Local/Repo md5 files differ
Sect 10 Orphaned md5 and dep files
Sect 11 find bootloader config file
Sect 12 Some dmesg lines
Sect 13 Some Xorg.0.log lines
Sect 14 /proc/bus/input/devices
Then each section is listed with the contents in a sort of question/answer format. Text that starts in the first column is the question.
Text that is indented is the answer. The intent behind this is to make it easier to visually scan the file contents. Here's what a section
looks like
#----------------------------------------------------------------------------------
Sect 1 TC version, uname, tcedir, mydata.tgz status, /etc/sysconfig/
TC version=
10.1
uname=
Linux E310 4.19.10-tinycore #1999 SMP Tue Dec 18 13:36:47 UTC 2018 i686 GNU/Linux
tcedir=
/mnt/sda1/tce
mydata.tgz status=
-rw-rw-r-- 1 tc staff 574K May 16 23:50 /mnt/sda1/tce/mydata.tgz
/etc/sysconfig/=
Xserver Xorg
backup 1
backup_device sda1/tce
cdroms /dev/sr1 /dev/sr0
desktop flwm_topside
icons wbar
keymap KEYMAP=us
language LANG=C
mydata mydata
newmodules
ntpserver pool.ntp.org
tcuser tc
The attached TCscan200607095849.txt file is what a complete scan looks like.
To try the script just download it and:
chmod 775 TCscan.sh
./TCscan.sh
The script echoes its progress to the screen as it runs.
[EDIT]: Updated attached script to version 0.2, Jun 16, 2020. Rich
[EDIT]: Updated attached script to version 0.3, Jun 17, 2020. Rich
[EDIT]: Updated attached script to version 0.4, Jan 10, 2021. Rich