From 85e9018585c312f14a0295a982b939a7259d5e61 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 19 Nov 2023 14:18:57 -0500 Subject: [PATCH] Update config only restart on -B if a/s/m mode --- config | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config b/config index ab3ece53..96e41337 100755 --- a/config +++ b/config @@ -479,8 +479,14 @@ elif [ "$1" = "-B" ]; then # if ["$mode" = "1"] ; then sudo systemctl restart rpitx fi - sudo systemctl restart cubesatsim - + value=`cat /home/pi/CubeSatSim/.mode` + echo "$value" > /dev/null + set -- $value + + if [ "$1" = "a" ] || [ "$1" = "s" ] || [ "$1" = "m" ] ; then + echo "restarting" + sudo systemctl restart cubesatsim + fi fi # sudo systemctl restart cubesatsim