From 02dd72841a2b586a66b515c4a70917ca61c8fc1d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 22 Mar 2026 12:06:36 -0400 Subject: [PATCH] Update config set MODE variable --- config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config b/config index 4adf0d35..392536db 100755 --- a/config +++ b/config @@ -144,6 +144,7 @@ if [ "$1" = "" ]; then value=`cat /home/pi/CubeSatSim/.mode` echo "$value" > /dev/null set -- $value + MODE=$1 if [ "$1" = "a" ]; then echo "Mode is APRS" @@ -279,8 +280,8 @@ if [ "$1" = "" ]; then # cat /home/pi/CubeSatSim/command_tx # echo - echo $1 - if [ "$1" = "p" ] || [ "$1" = "P" ] ; then + echo $MODE + if [ "$MODE" = "p" ] || [ "$MODE" = "P" ] ; then echo "Squelch is off since PacSat or PacSat Ground Station mode" else echo -n "Squelch level is: "