Bash code to decode the "Revision:" field of /proc/cpuinfo
on the Raspberry Pi (also finds CPU architecture & Linux OS info).
- Similar to raspberry_pi_revision, but written in bash.
- Successfully calculates these test-cases
- Stores found info in variables for your script to reference later.
Feel free to copypasta/edit into your bash scripts if you need a function to identify Raspberry Pi hardware, CPU, and software.