Skip to content

Commit d1d4a57

Browse files
lurchpelwell
authored andcommitted
raspinfo: Display EEPROM info for Pi 400, CM4, CM4S and Pi 5
By expanding the board-identification regex Fixes #72
1 parent 8fafd49 commit d1d4a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raspinfo/raspinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ echo
278278
sudo dmesg | sed -e "s/\([0-9a-fA-F]\{1,4\}:\)\{7,7\}[0-9a-fA-F]\{1,4\}/y.y.y.y.y.y.y.y/g" | sed -e "s/[0-9a-fA-F]\{1,4\}:\(:[0-9a-fA-F]\{1,4\}\)\{1,4\}/y::y.y.y.y/g" | sed -e "s/\([0-9a-fA-F]\{2,2\}\:\)\{5,5\}[0-9a-fA-F]\{2,2\}/m.m.m.m/g"
279279

280280

281-
if 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
281+
if grep -q "^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]1[13457][0-9a-fA-F]$" /proc/cpuinfo
282282
then
283283
echo
284284
echo "EEPROM"

0 commit comments

Comments
 (0)