From 9ed1a3ccd31b501a6d012fcf850f68923010ff3d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 28 Jun 2021 08:39:43 -0400 Subject: [PATCH] moved sim.cfg read --- config | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/config b/config index 3e91d077..91819c13 100755 --- a/config +++ b/config @@ -26,7 +26,10 @@ if [ "$1" = "" ]; then else echo fi - echo "$5" + + value=`cat /home/pi/CubeSatSim/sim.cfg` + echo "$value" > /dev/null + set -- $value if [ "$5" = "y" ] || [ "$5" = "yes" ] ; then # sim="yes" @@ -40,10 +43,6 @@ if [ "$1" = "" ]; then echo -e "Current sim.cfg configuration file:" # echo - value=`cat /home/pi/CubeSatSim/sim.cfg` - echo "$value" > /dev/null - set -- $value - echo $1 $2 $3 $4 $5 echo