delete Raspbian judgement

This commit is contained in:
lcdwiki 2019-07-03 10:44:48 +01:00
parent eccd8281dc
commit f3898b3c76
11 changed files with 77 additions and 77 deletions

View File

@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:90:320:240" > ./.have_installed echo "gpio:resistance:32:90:320:240" > ./.have_installed
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:270:320:240" > ./.have_installed echo "gpio:resistance:32:270:320:240" > ./.have_installed
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:270:320:240" > ./.have_installed echo "gpio:resistance:32:270:320:240" > ./.have_installed
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -34,11 +34,11 @@ sudo cp ./usr/inittab /etc/
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:32:270:320:240" > ./.have_installed echo "gpio:resistance:32:270:320:240" > ./.have_installed
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -35,11 +35,11 @@ sudo cp ./usr/inittab /etc/
sudo touch ./.have_installed sudo touch ./.have_installed
echo "gpio:resistance:35:90:480:320" > ./.have_installed echo "gpio:resistance:35:90:480:320" > ./.have_installed
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -37,11 +37,11 @@ fi
sudo cp -rf ./usr/99-calibration.conf-5-0 /etc/X11/xorg.conf.d/99-calibration.conf sudo cp -rf ./usr/99-calibration.conf-5-0 /etc/X11/xorg.conf.d/99-calibration.conf
sudo touch ./.have_installed sudo touch ./.have_installed
echo "hdmi:resistance:5:0:800:480" > ./.have_installed echo "hdmi:resistance:5:0:800:480" > ./.have_installed
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -58,11 +58,11 @@ sudo install fbcp /usr/local/bin/fbcp
cd - > /dev/null cd - > /dev/null
fi fi
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -60,11 +60,11 @@ sudo install fbcp /usr/local/bin/fbcp
cd - > /dev/null cd - > /dev/null
fi fi
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -58,11 +58,11 @@ sudo install fbcp /usr/local/bin/fbcp
cd - > /dev/null cd - > /dev/null
fi fi
#evdev install #evdev install
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -37,11 +37,11 @@ fi
sudo cp -rf ./usr/99-calibration.conf-3508-0 /etc/X11/xorg.conf.d/99-calibration.conf sudo cp -rf ./usr/99-calibration.conf-3508-0 /etc/X11/xorg.conf.d/99-calibration.conf
sudo touch ./.have_installed sudo touch ./.have_installed
echo "hdmi:resistance:3508:0:480:320" > ./.have_installed echo "hdmi:resistance:3508:0:480:320" > ./.have_installed
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync

View File

@ -40,11 +40,11 @@ sudo cp -rf ./usr/99-calibration.conf-397-270 /etc/X11/xorg.conf.d/99-calibratio
sudo touch ./.have_installed sudo touch ./.have_installed
echo "hdmi:resistance:397:270:480:800" > ./.have_installed echo "hdmi:resistance:397:270:480:800" > ./.have_installed
nodeplatform=`uname -n` #nodeplatform=`uname -n`
kernel=`uname -r` #kernel=`uname -r`
version=`uname -v` version=`uname -v`
if test "$nodeplatform" = "raspberrypi";then #if test "$nodeplatform" = "raspberrypi";then
echo "this is raspberrypi kernel" #echo "this is raspberrypi kernel"
version=${version##* } version=${version##* }
#version=${version#*#} #version=${version#*#}
echo $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 sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
#echo "reboot" #echo "reboot"
fi fi
else #else
echo "this is not raspberrypi kernel, no need to update touch configure, reboot" #echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
fi #fi
sudo sync sudo sync
sudo sync sudo sync