mirror of
https://github.com/goodtft/LCD-show.git
synced 2025-02-26 23:54:31 +01:00
delete Raspbian judgement
This commit is contained in:
parent
eccd8281dc
commit
f3898b3c76
@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:90:320:240" > ./.have_installed
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -54,9 +54,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
LCD24-show
14
LCD24-show
@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:270:320:240" > ./.have_installed
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -54,9 +54,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
LCD28-show
14
LCD28-show
@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:270:320:240" > ./.have_installed
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -54,9 +54,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
LCD32-show
14
LCD32-show
@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:270:320:240" > ./.have_installed
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -54,9 +54,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
LCD35-show
14
LCD35-show
@ -35,11 +35,11 @@ sudo cp ./usr/inittab /etc/
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:35:90:480:320" > ./.have_installed
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -55,9 +55,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
LCD5-show
14
LCD5-show
@ -37,11 +37,11 @@ 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
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -57,9 +57,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
MHS32-show
14
MHS32-show
@ -58,11 +58,11 @@ sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
fi
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -78,9 +78,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
MHS35-show
14
MHS35-show
@ -60,11 +60,11 @@ sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
fi
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -80,9 +80,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
MHS40-show
14
MHS40-show
@ -58,11 +58,11 @@ sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
fi
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -78,9 +78,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
MPI3508-show
14
MPI3508-show
@ -37,11 +37,11 @@ fi
|
||||
sudo cp -rf ./usr/99-calibration.conf-3508-0 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:3508:0:480:320" > ./.have_installed
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -57,9 +57,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
14
MPI4008-show
14
MPI4008-show
@ -40,11 +40,11 @@ sudo cp -rf ./usr/99-calibration.conf-397-270 /etc/X11/xorg.conf.d/99-calibratio
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:397:270:480:800" > ./.have_installed
|
||||
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
@ -60,9 +60,9 @@ grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
Loading…
x
Reference in New Issue
Block a user