modify all GPIO module driver for new system

This commit is contained in:
goodtft 2025-11-19 11:22:02 +00:00
parent 99f12f75bc
commit 34db15e637
12 changed files with 167 additions and 22 deletions

View File

@ -39,9 +39,19 @@ sudo cp -rf ./boot/config.txt.bak /boot/config.txt
#fi #fi
#sudo cp ./usr/inittab /etc/ #sudo cp ./usr/inittab /etc/
#sudo cp ./boot/config-mhs35.txt /boot/config.txt #sudo cp ./boot/config-mhs35.txt /boot/config.txt
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:LCD154:90:300:300" > ./.have_installed echo "gpio:resistance:LCD154:90:300:300" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
#FBCP install #FBCP install
if [ -d ./fbcp-ili9341 ]; then if [ -d ./fbcp-ili9341 ]; then
sudo rm -rf ./fbcp-ili9341 sudo rm -rf ./fbcp-ili9341
@ -75,6 +85,7 @@ cd - > /dev/null
sudo cp -rf ./etc/rc.local /etc/rc.local sudo cp -rf ./etc/rc.local /etc/rc.local
fi fi
fi fi
fi
#KEY install #KEY install
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn

View File

@ -35,16 +35,27 @@ sudo cp -rf ./usr/99-calibration.conf-32-90 /etc/X11/xorg.conf.d/99-calibration
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-32.txt /boot/config.txt #sudo cp ./boot/config-32.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:90:480:360" > ./.have_installed echo "gpio:resistance:32:90:480:360" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -89,6 +100,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -97,8 +109,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -35,16 +35,27 @@ sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibratio
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-32.txt /boot/config.txt #sudo cp ./boot/config-32.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:270:480:360" > ./.have_installed echo "gpio:resistance:32:270:480:360" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -89,6 +100,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -97,8 +109,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -35,16 +35,28 @@ sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibratio
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-32.txt /boot/config.txt #sudo cp ./boot/config-32.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:270:480:360" > ./.have_installed echo "gpio:resistance:32:270:480:360" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -89,6 +101,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -97,8 +110,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -35,16 +35,28 @@ sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibratio
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-32.txt /boot/config.txt #sudo cp ./boot/config-32.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:270:480:360" > ./.have_installed echo "gpio:resistance:32:270:480:360" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -89,6 +101,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -97,8 +110,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -36,16 +36,27 @@ sudo cp -rf ./usr/99-calibration.conf-mhs32-270 /etc/X11/xorg.conf.d/99-calibra
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-mhs32.txt /boot/config.txt #sudo cp ./boot/config-mhs32.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:mhs32:270:480:360" > ./.have_installed echo "gpio:resistance:mhs32:270:480:360" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -90,6 +101,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -98,8 +110,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -37,16 +37,27 @@ sudo cp -rf ./usr/99-calibration.conf-mhs35-90 /etc/X11/xorg.conf.d/99-calibrat
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-mhs35.txt /boot/config.txt #sudo cp ./boot/config-mhs35.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:mhs35:90:480:320" > ./.have_installed echo "gpio:resistance:mhs35:90:480:320" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -90,6 +101,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -98,8 +110,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -43,15 +43,26 @@ sudo cp -rf ./usr/99-calibration.conf-mhs35b-90 /etc/X11/xorg.conf.d/99-calibra
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:mhs35b:90:480:320" > ./.have_installed echo "gpio:resistance:mhs35b:90:480:320" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -96,6 +107,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -104,8 +116,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -37,16 +37,27 @@ sudo cp -rf ./usr/99-calibration.conf-mhs35ips-90 /etc/X11/xorg.conf.d/99-calib
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-mhs35.txt /boot/config.txt #sudo cp ./boot/config-mhs35.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:mhs35ips:90:480:320" > ./.have_installed echo "gpio:resistance:mhs35ips:90:480:320" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -90,6 +101,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -98,8 +110,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -35,16 +35,27 @@ sudo cp -rf ./usr/99-calibration.conf-mhs395-90 /etc/X11/xorg.conf.d/99-calibra
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-mhs395.txt /boot/config.txt #sudo cp ./boot/config-mhs395.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:mhs395:90:480:320" > ./.have_installed echo "gpio:resistance:mhs395:90:480:320" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -89,6 +100,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -97,8 +109,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -36,6 +36,15 @@ sudo cp -rf ./usr/99-calibration.conf-mhs397-0 /etc/X11/xorg.conf.d/99-calibrat
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp -rf ./etc/rc.local /etc/rc.local sudo cp -rf ./etc/rc.local /etc/rc.local
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
@ -47,10 +56,12 @@ sudo cp -rf ./etc/rc.local /etc/rc.local
sudo cp -rf ./etc/modules /etc/modules sudo cp -rf ./etc/modules /etc/modules
sudo chmod 644 /etc/modules sudo chmod 644 /etc/modules
sudo cp -rf ./etc/modprobe.d/fbtft.conf /etc/modprobe.d/ sudo cp -rf ./etc/modprobe.d/fbtft.conf /etc/modprobe.d/
fi
sudo touch ./.have_installed sudo touch ./.have_installed
echo "hdmi:resistance:mhs397:0:800:480" > ./.have_installed echo "hdmi:resistance:mhs397:0:800:480" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -95,6 +106,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -103,8 +115,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"

View File

@ -37,16 +37,27 @@ sudo cp -rf ./usr/99-calibration.conf-mis35-90 /etc/X11/xorg.conf.d/99-calibrat
if [[ "$deb_version" < "12.1" ]]; then if [[ "$deb_version" < "12.1" ]]; then
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then #if test "$root_dev" = "/dev/mmcblk0p7";then
#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
#else #else
#sudo cp ./usr/cmdline.txt /boot/ #sudo cp ./usr/cmdline.txt /boot/
#fi #fi
if [[ "$deb_version" < "13.1" ]]; then
sudo cp ./usr/inittab /etc/ sudo cp ./usr/inittab /etc/
fi
#sudo cp ./boot/config-mhs35.txt /boot/config.txt #sudo cp ./boot/config-mhs35.txt /boot/config.txt
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:mis35:90:480:320" > ./.have_installed echo "gpio:resistance:mis35:90:480:320" > ./.have_installed
if [[ "$deb_version" < "13.1" ]]; then
if [[ "$deb_version" < "12.10" ]]; then if [[ "$deb_version" < "12.10" ]]; then
sudo apt-get update sudo apt-get update
fi fi
@ -91,6 +102,7 @@ fi
else else
echo "bad network, can't install cmake!!!" echo "bad network, can't install cmake!!!"
fi fi
fi
#evdev install #evdev install
#nodeplatform=`uname -n` #nodeplatform=`uname -n`
@ -99,8 +111,8 @@ version=`uname -v`
#if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
#echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
input_result=0 input_result=0
version=${version##* } version=${version##*(}
#version=${version#*#} version=${version%%-*}
echo $version echo $version
if test $version -lt 2017;then if test $version -lt 2017;then
echo "reboot" echo "reboot"