modify 5008 driver

This commit is contained in:
goodtft 2025-11-20 08:33:27 +00:00
parent 487606e533
commit 5e258f04f6
1 changed files with 10 additions and 2 deletions

View File

@ -48,13 +48,21 @@ sudo cp -rf ./boot/config.txt.bak /boot/config.txt
#else
#sudo cp ./usr/cmdline.txt /boot/
#fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/
fi
if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi
if [ ! -d /etc/X11/xorg.conf.d ]; then
sudo mkdir /etc/X11/xorg.conf.d
fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
fi
sudo cp -rf ./usr/99-calibration.conf-5-0 /etc/X11/xorg.conf.d/99-calibration.conf
sudo touch ./.have_installed
echo "hdmi:resistance:5:0:800:480" > ./.have_installed
@ -64,8 +72,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel"
input_result=0
version=${version##* }
#version=${version#*#}
version=${version##*(}
version=${version%%-*}
echo $version
if test $version -lt 2017; then
echo "reboot"