#681 preserve v1.3 screen rotation on update

This commit is contained in:
rootzoll
2020-03-21 17:54:15 -07:00
parent 4f8c9f832f
commit e0644c82c2

View File

@@ -325,12 +325,12 @@ fi
# LCD ROTATE
if [ "${#lcdrotate}" -gt 0 ]; then
# when upgrading from an old raspiblitz - enforce lcdrotate = 0
lcdrotate=0
fi
echo "Provisioning LCD rotate - run config script" >> ${logFile}
sudo sed -i "s/^message=.*/message='LCD Rotate'/g" ${infoFile}
sudo /home/admin/config.scripts/blitz.lcdrotate.sh ${lcdrotate} >> ${logFile} 2>&1
else
echo "Provisioning LCD rotate - not active" >> ${logFile}
fi
# TOUCHSCREEN
if [ "${#touchscreen}" -gt 0 ]; then