Use processor rather than board ID to detect Pi 4

This commit is contained in:
Simon Long 2020-08-17 09:25:23 +01:00
parent 71f74289eb
commit a750ab8e5b
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
raspi-config (20200817) buster; urgency=medium
* Use processor ID to detect Pi 4 rather than board ID
-- Simon Long <simon@raspberrypi.com> Mon, 17 Aug 2020 09:24:09 +0100
raspi-config (20200727) buster; urgency=medium
* Disable initial rfkill for all platforms when setting wireless country

View File

@ -46,7 +46,7 @@ is_pizero() {
}
is_pifour() {
grep -q "^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$" /proc/cpuinfo
grep -q "^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F]3[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]$" /proc/cpuinfo
return $?
}