set to right commit

This commit is contained in:
rootzoll
2020-09-02 21:00:10 +02:00
parent 0af23ffe65
commit ecb553c9e3

View File

@@ -51,8 +51,8 @@ if [ "${command}" == "check-repair" ]; then
sudo -u admin git clone https://github.com/MrYacha/LCD-show.git sudo -u admin git clone https://github.com/MrYacha/LCD-show.git
sudo -u admin chmod -R 755 LCD-show sudo -u admin chmod -R 755 LCD-show
sudo -u admin chown -R admin:admin LCD-show sudo -u admin chown -R admin:admin LCD-show
cd LCD-show/ cd /home/admin/LCD-show
sudo -u admin git reset --hard 53dd0bf sudo -u admin git reset --hard b012c487669afd3e997fc63fcc097d45a5a6a34e
echo "# --> correcting rotate setting" echo "# --> correcting rotate setting"
if [ "${lcdrotate}" == "on" ]; then if [ "${lcdrotate}" == "on" ]; then
@@ -61,6 +61,7 @@ if [ "${command}" == "check-repair" ]; then
sudo sed -i "s/^dtoverlay=.*/dtoverlay=waveshare35a:rotate=270/g" /boot/config.txt sudo sed -i "s/^dtoverlay=.*/dtoverlay=waveshare35a:rotate=270/g" /boot/config.txt
fi fi
echo "# --> restart to acrivate new driver" echo "# --> restart to acrivate new driver"
chmod +x ./LCD35-show
./LCD35-show ./LCD35-show
sudo shutdown -r now sudo shutdown -r now
else else