mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
iiab-summary: Strip RPi model null char for dpaste.com
This commit is contained in:
parent
7c44e2eb2f
commit
b6ab7bf733
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ echo "display-manager? $(systemctl is-active display-manager.service) Arch1: $
|
|||
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)
|
||||
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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue