From 8945102c3bc453585b31eb3e65c3ce6784dfa822 Mon Sep 17 00:00:00 2001 From: Daniel Marsee Date: Thu, 4 Oct 2018 15:23:57 -0900 Subject: [PATCH] Actually, really, truly fixed the permissions issue with the boot file. --- calcsetup.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/calcsetup.sh b/calcsetup.sh index beb18ed..2f634b1 100755 --- a/calcsetup.sh +++ b/calcsetup.sh @@ -75,7 +75,14 @@ echo "" >> tmpboot.txt echo "# set up the size to 800x480" >> tmpboot.txt echo "hdmi_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6" >> tmpboot.txt -sudo cat tmpboot.txt >> /boot/config.txt +touch oldboot.txt + +cat /boot/config.txt >> oldboot.txt +cat oldboot.txt >> newboot.txt +cat tempboot.txt >> newboot.txt +sudo cp newboot.txt /boot/config.txt + +sleep 2 # Install X server, DM, WM, vim (for some reason), and python stuff sudo apt install vim xorg lightdm ratpoison idle3 python3-matplotlib -y @@ -96,7 +103,7 @@ touch .alreadyrun echo "This script can only be run once." >> .alreadyrun echo "Shutting down. Connect LCD, then power back on." -sleep 2 +sleep 5 sudo shutdown -h now EOF \ No newline at end of file