From f8b0b91ec8012a9c6f43bf5be950fe2f56024fac Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 21 Jul 2024 10:24:11 -0400 Subject: [PATCH] Update config only reboot on F->a or m --- config | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config b/config index 318739be..be65667f 100755 --- a/config +++ b/config @@ -365,7 +365,8 @@ elif [ "$1" = "-a" ]; then echo "changing CubeSatSim to AFSK mode" sudo echo "a" > /home/pi/CubeSatSim/.mode - if [ "$1" == "f" ] || [ "$1" == "b" ] ; then +# if [ "$1" == "f" ] || [ "$1" == "b" ] ; then + if [ "$1" == "f" ] ; then # restart=1 reboot=1 else @@ -387,9 +388,10 @@ elif [ "$1" = "-m" ]; then echo "changing CubeSatSim to CW mode" sudo echo "m" > /home/pi/CubeSatSim/.mode - if [ "$1" == "f" ] || [ "$1" == "b" ] ; then -# reboot=1 - restart=1 +# if [ "$1" == "f" ] || [ "$1" == "b" ] ; then + if [ "$1" == "f" ] ; then + reboot=1 +# restart=1 else restart=1 fi