19 lines
228 B
Text
19 lines
228 B
Text
|
#!/bin/sh
|
||
|
ID=$(dmesg | grep "panel id:" | sed "s#^.*panel id: ##g")
|
||
|
case ${ID} in
|
||
|
"30 52")
|
||
|
ID="v1"
|
||
|
;;
|
||
|
"38 21")
|
||
|
ID="v2"
|
||
|
;;
|
||
|
*)
|
||
|
ID="Unknown"
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
if [ -n "${ID}" ]
|
||
|
then
|
||
|
echo "PANEL VERSION: ${ID}"
|
||
|
fi
|