From c75b7dcf486e8d75858cff058d56d0da49a6ae8d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 2 Jun 2021 09:08:41 -0400 Subject: [PATCH] removed extra restart --- config | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/config b/config index 738e9106..84104868 100755 --- a/config +++ b/config @@ -81,10 +81,9 @@ 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 "Restarting CubeSatSim with new configuraation file" + echo sudo systemctl restart cubesatsim @@ -126,11 +125,10 @@ 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 "Restarting CubeSatSim with new configuraation file" - + echo + sudo systemctl restart cubesatsim elif [ "$1" = "-l" ]; then @@ -193,14 +191,12 @@ elif [ "$1" = "-l" ]; then fi echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" - echo $1 $2 $lat $long - echo $1 $2 $lat $long > sim.cfg - echo "Restarting CubeSatSim with new configuraation file" - + echo + sudo systemctl restart cubesatsim fi -sudo systemctl restart cubesatsim +# sudo systemctl restart cubesatsim