Merge pull request #2507 from Sparticuz/mainline

Fix panel reporting on mainline-3566
This commit is contained in:
Alex 2023-12-08 14:19:48 -07:00 committed by GitHub
commit 7382eee7ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -1,11 +1,11 @@
#!/bin/sh
ID=$(dmesg | grep "panel id:" | sed "s#^.*panel id: ##g")
ID=$(dmesg | grep "panel")
case ${ID} in
"30 52")
ID="v1 (${ID})"
*newvision*)
ID="v1"
;;
"38 21")
ID="v2 (${ID})"
*sitronix*)
ID="v2"
;;
*)
ID="Unknown"
@ -15,4 +15,4 @@ esac
if [ -n "${ID}" ]
then
echo "PANEL VERSION: ${ID}"
fi
fi

View file

@ -1,10 +1,10 @@
#!/bin/sh
ID=$(dmesg | grep "panel id:" | sed "s#^.*panel id: ##g")
ID=$(dmesg | grep "panel")
case ${ID} in
"30 52")
*newvision*)
ID="v1"
;;
"38 21")
*sitronix*)
ID="v2"
;;
*)
@ -15,4 +15,4 @@ esac
if [ -n "${ID}" ]
then
echo "PANEL VERSION: ${ID}"
fi
fi