mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 03:56:21 +02:00
Update build_sdcard.sh
This commit is contained in:
@@ -679,12 +679,14 @@ if [ "${baseImage}" = "raspbian" ] || [ "${baseImage}" = "armbian" ] || [ "${bas
|
|||||||
fi
|
fi
|
||||||
if [ "${baseImage}" = "raspbian" ]; then
|
if [ "${baseImage}" = "raspbian" ]; then
|
||||||
# create /home/admin/setup.sh - which will get executed after reboot by autologin pi user
|
# create /home/admin/setup.sh - which will get executed after reboot by autologin pi user
|
||||||
cat > /home/admin/setup.sh <<EOF
|
cat > /tmp/setup.sh <<EOF
|
||||||
|
|
||||||
# make LCD screen rotation correct
|
# make LCD screen rotation correct
|
||||||
sudo sed --in-place -i "57s/.*/dtoverlay=tft35a:rotate=270/" /boot/config.txt
|
sudo sed --in-place -i "57s/.*/dtoverlay=tft35a:rotate=270/" /boot/config.txt
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
sudo cp /tmp/setup.sh /home/admin/setup.sh
|
||||||
|
sudo chown admin.admin /home/admin/setup.sh
|
||||||
sudo chmod +x /home/admin/setup.sh
|
sudo chmod +x /home/admin/setup.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user