fix panel reporting

This commit is contained in:
Sparticuz 2023-12-08 16:17:54 -05:00
parent b54d209abc
commit 1b1db2b4f4
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