From 9ec1fe77a186448b7d79c71312bee01e1369dd7a Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 2 Jun 2021 10:45:44 -0400 Subject: [PATCH] added full path of config file --- config | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config b/config index 96551454..d881c326 100755 --- a/config +++ b/config @@ -60,7 +60,7 @@ elif [ "$1" = "-c" ]; then # echo -e "Current sim.cfg configuration file:" # echo - value=`cat sim.cfg` + value=`cat /home/pi/CubeSatSim/sim.cfg` echo "$value" > /dev/null set -- $value @@ -82,7 +82,7 @@ elif [ "$1" = "-c" ]; then echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" echo $callsign $2 $3 $4 - echo $callsign $2 $3 $4 > sim.cfg + echo $callsign $2 $3 $4 > /home/pi/CubeSatSim/sim.cfg echo echo "Restarting CubeSatSim with new configuraation file" echo @@ -99,7 +99,7 @@ elif [ "$1" = "-r" ]; then # echo -e "Current sim.cfg configuration file:" # echo - value=`cat sim.cfg` + value=`cat /home/pi/CubeSatSim/sim.cfg` echo "$value" > /dev/null set -- $value @@ -128,7 +128,7 @@ elif [ "$1" = "-r" ]; then echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" echo $1 $resets $3 $4 - echo $1 $resets $3 $4 > sim.cfg + echo $1 $resets $3 $4 > /home/pi/CubeSatSim/sim.cfg echo echo "Restarting CubeSatSim with new configuraation file" echo @@ -146,7 +146,7 @@ elif [ "$1" = "-l" ]; then # echo -e "Current sim.cfg configuration file:" # echo - value=`cat sim.cfg` + value=`cat /home/pi/CubeSatSim/sim.cfg` echo "$value" > /dev/null set -- $value @@ -198,7 +198,7 @@ elif [ "$1" = "-l" ]; then echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" echo $1 $2 $lat $long - echo $1 $2 $lat $long > sim.cfg + echo $1 $2 $lat $long > /home/pi/CubeSatSim/sim.cfg echo echo "Restarting CubeSatSim with new configuraation file" echo