From b3c1ebee9ece58c2f8a486d0bb5ef7295b30f830 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 17 Aug 2025 10:09:42 -0400 Subject: [PATCH] Update config -U only reboot if changed --- config | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config b/config index 157cfda5..1eac704d 100755 --- a/config +++ b/config @@ -1769,12 +1769,10 @@ elif [ "$1" = "-U" ]; then echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} $sim $time echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} $sim $time > /home/pi/CubeSatSim/sim.cfg echo -## echo "Rebooting CubeSatSim with new configuration file" -## echo - reboot=1 -## sudo reboot now -# sudo restart cubesatsim + if [ "${12}" != "$sim" ]; then + reboot=1 + fi elif [ "$1" = "-h" ]; then