From 2d2a95baa4fe5e733b92e992f385c3ee8f50965d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 18 Jan 2026 12:26:53 -0500 Subject: [PATCH] Update config don't restart command if in mode n --- config | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config b/config index e5f6e362..4036afb4 100755 --- a/config +++ b/config @@ -1245,10 +1245,13 @@ elif [ "$1" = "-A" ]; then echo done - - sudo systemctl restart command - if [ "$1" != "n" ]; then + value=`cat /home/pi/CubeSatSim/.mode` + echo "$value" > /dev/null + set -- $value + + if [ "$1" != "n" ] ; then + sudo systemctl restart command reboot=1 fi