@ -548,37 +548,34 @@ echo "IMPORTANT IF WANT TO MAKE A RELEASE IMAGE FROM THIS BUILD:"
echo"login once after reboot without HDD and run 'XXprepareRelease.sh'"
echo"login once after reboot without HDD and run 'XXprepareRelease.sh'"
echo""
echo""
echo"Press ENTER to install LCD and reboot ..."
echo"Press ENTER to install LCD and reboot ..."
# don`t stop automatic install
read key
# read key
# give Raspi a default hostname (optional)
# give Raspi a default hostname (optional)
sudo raspi-config nonint do_hostname "RaspiBlitz"
sudo raspi-config nonint do_hostname "RaspiBlitz"
# *** Display selection ***
# *** Display selection ***
#dialog --title "Display" --yesno "Are you using the default display available from Amazon?\nSelect 'No' if you are using the Swiss version from play-zone.ch!" 6 80
dialog --title "Display" --yesno "Are you using the default display available from Amazon?\nSelect 'No' if you are using the Swiss version from play-zone.ch!"680
#defaultDisplay=$?
defaultDisplay=$?
# choosing between LCD-s during install makes dietpi automation stop - procedd with default LCD
if[[$defaultDisplay -eq 0]]
then
#if [[ $defaultDisplay -eq 0 ]]
#then
# *** RASPIBLITZ / LCD (at last - because makes a reboot) ***
# *** RASPIBLITZ / LCD (at last - because makes a reboot) ***
# based on https://www.elegoo.com/tutorial/Elegoo%203.5%20inch%20Touch%20Screen%20User%20Manual%20V1.00.2017.10.09.zip
# based on https://www.elegoo.com/tutorial/Elegoo%203.5%20inch%20Touch%20Screen%20User%20Manual%20V1.00.2017.10.09.zip
cd /home/admin/
cd /home/admin/
sudo apt-mark hold raspberrypi-bootloader
sudo apt-mark hold raspberrypi-bootloader
git clone https://github.com/goodtft/LCD-show.git
git clone https://github.com/goodtft/LCD-show.git
sudo chmod -R 755 LCD-show
sudo chmod -R 755 LCD-show
sudo chown -R admin:admin LCD-show
sudo chown -R admin:admin LCD-show
cd LCD-show/
cd LCD-show/
sudo ./LCD35-show
sudo ./LCD35-show
#else
else
# # Download and install the driver
# Download and install the driver
# # based on http://www.raspberrypiwiki.com/index.php/3.5_inch_TFT_800x480@60fps
# based on http://www.raspberrypiwiki.com/index.php/3.5_inch_TFT_800x480@60fps