Blog 2020/5/2
<- previous | index | next ->
Thanks to the API at perturb.org, this is a one-liner:
$ curl -L perturb.org/rpi?rev=$(awk '/^Revision/ { print $3 }' /proc/cpuinfo)
Revision : a02082
Model : 3 Model B
Memory : 1 GB
Overvolt : No
Released : Q1 2016
Notes : (Mfg by Sony)
See also https://elinux.org/RPi_HardwareHistory
Turn this into a handy script, as /usr/local/bin/pi
:
#!/bin/bash
set -e -o pipefail
curl -L perturb.org/rpi?rev=$(awk '/^Revision/ { print $3 }' /proc/cpuinfo)