mirror of
https://github.com/brain-hackers/brain-config.git
synced 2026-11-07 15:12:37 +09:00
Use processor rather than board ID to detect Pi 4
This commit is contained in:
1 parent
71f74289eb
commit
a750ab8e5b
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -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 $?
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user