1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Merge pull request #3090 from holta/local_facts.fact-fix-RPI_MODEL

local_facts.fact: $RPI_MODEL should be "none" when not a Raspberry Pi
This commit is contained in:
A Holt 2021-12-31 21:56:43 -05:00 committed by GitHub
commit 53adac868e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,8 +95,8 @@ tmp=$(git rev-parse --verify HEAD) &&
#tmp=$(cat /proc/device-tree/mfg-data/MN) &&
# XO_MODEL=$tmp
tmp=$(grep -ai raspberry /proc/device-tree/model | tr -d '\0') &&
RPI_MODEL=$tmp
grep -iq raspberry /proc/device-tree/model &&
RPI_MODEL=$(grep -ai raspberry /proc/device-tree/model | tr -d '\0')
# /proc/device-tree/model e.g. 'Parallels ARM Virtual Machine' identical to...
# /sys/firmware/devicetree/base/model (also true on RPi hardware!)