mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #3749 from holta/dpaste.com-fails-on-null-char
dpaste.com pastebin disallows null char — so make iiab-summary & iiab-diagnostics output safer (and force odd chars to be visible)
This commit is contained in:
commit
9b0ad93499
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ echo "This is: $outfile" >> $outfile
|
||||||
echo >> $outfile
|
echo >> $outfile
|
||||||
echo -e "\n\n\n0. HW + SW Quick Summary" >> $outfile
|
echo -e "\n\n\n0. HW + SW Quick Summary" >> $outfile
|
||||||
echo >> $outfile
|
echo >> $outfile
|
||||||
/opt/iiab/iiab/scripts/iiab-summary >> $outfile
|
/opt/iiab/iiab/scripts/iiab-summary | iconv -t UTF-8//IGNORE | cat -v >> $outfile # Make odd chars visible, just in case (e.g. dpaste.com pastebin disallows null chars)
|
||||||
if [ -f /etc/rpi-issue ]; then
|
if [ -f /etc/rpi-issue ]; then
|
||||||
echo "stage2 = Raspberry Pi OS Lite" >> $outfile
|
echo "stage2 = Raspberry Pi OS Lite" >> $outfile
|
||||||
echo "stage4 = Raspberry Pi OS with desktop" >> $outfile
|
echo "stage4 = Raspberry Pi OS with desktop" >> $outfile
|
||||||
|
|
|
@ -67,7 +67,7 @@ echo "display-manager? $(systemctl is-active display-manager.service) Arch1: $
|
||||||
uname -nrvm
|
uname -nrvm
|
||||||
echo "$(lscpu | grep '^Model name:' | sed 's/^Model name:\s*//') $(lscpu | grep '^CPU(s):' | tr -s ' ') "$(free -m | tail -2 | tr -s ' ' | cut -d' ' -f1-2)
|
echo "$(lscpu | grep '^Model name:' | sed 's/^Model name:\s*//') $(lscpu | grep '^CPU(s):' | tr -s ' ') "$(free -m | tail -2 | tr -s ' ' | cut -d' ' -f1-2)
|
||||||
if [ -f /proc/device-tree/model ]; then
|
if [ -f /proc/device-tree/model ]; then
|
||||||
cat /proc/device-tree/model ; echo # MORE RPi DETAIL: tail -4 /proc/cpuinfo
|
cat /proc/device-tree/model | tr -d '\000' ; echo # dpaste.com pastebin doesn't allow null chars! MORE RPi DETAIL: tail -4 /proc/cpuinfo
|
||||||
fi
|
fi
|
||||||
if [ -f /sys/class/thermal/thermal_zone0/temp ]; then
|
if [ -f /sys/class/thermal/thermal_zone0/temp ]; then
|
||||||
echo "Temperature(s): "$(cat /sys/class/thermal/thermal_zone*/temp) # Prettier if avail: vcgencmd measure_temp
|
echo "Temperature(s): "$(cat /sys/class/thermal/thermal_zone*/temp) # Prettier if avail: vcgencmd measure_temp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue