From 492b34118869552ddc84ce249744e0a946ebdfd7 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 29 Jun 2021 14:47:02 -0400 Subject: [PATCH] added reboot for update from beta image --- update | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/update b/update index c44ba929..c0c6a146 100755 --- a/update +++ b/update @@ -109,6 +109,20 @@ if [ ! -d "/home/pi/PiSSTVpp" ]; then cp /home/pi/CubeSatSim/sstv/sstv_image_2_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg fi + echo "You need to reboot to complete this update. Reboot now (y/n)?" + + read -r ANS + + if [ "$ANS" = "y" ]; then + + sudo reboot now + + else + + echo "The CubeSatSim software may not work correctly until you reboot." + + fi + fi cd /home/pi/pi-power-button