From fbe211e6132a3cc7c089832263b3981b36827667 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 4 Jun 2021 11:17:11 -0400 Subject: [PATCH] added -n for no reset for callsign and lat long --- config | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/config b/config index a161e0fe..ca2fb56a 100755 --- a/config +++ b/config @@ -163,11 +163,14 @@ elif [ "$1" = "-c" ]; then echo $callsign $2 $3 $4 $5 echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg - echo - echo "Restarting CubeSatSim with new configuraation file" - echo - - sudo systemctl restart cubesatsim + + if [ "$2" = "-n" ]; then + echo + else + echo "Restarting CubeSatSim with new configuraation file" + echo + sudo systemctl restart cubesatsim + fi elif [ "$1" = "-c" ]; then @@ -203,10 +206,14 @@ elif [ "$1" = "-c" ]; then echo $callsign $2 $3 $4 $5 echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg echo - echo "Restarting CubeSatSim with new configuraation file" - echo - - sudo systemctl restart cubesatsim + + if [ "$2" = "-n" ]; then + echo + else + echo "Restarting CubeSatSim with new configuraation file" + echo + sudo systemctl restart cubesatsim + fi elif [ "$1" = "-r" ]; then