removed extra restart

pull/85/head
alanbjohnston 5 years ago committed by GitHub
parent 11995efefa
commit c75b7dcf48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -81,10 +81,9 @@ elif [ "$1" = "-c" ]; then
echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n"
echo $callsign $2 $3 $4 echo $callsign $2 $3 $4
echo $callsign $2 $3 $4 > sim.cfg echo $callsign $2 $3 $4 > sim.cfg
echo "Restarting CubeSatSim with new configuraation file" echo "Restarting CubeSatSim with new configuraation file"
echo
sudo systemctl restart cubesatsim sudo systemctl restart cubesatsim
@ -126,11 +125,10 @@ elif [ "$1" = "-r" ]; then
echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n"
echo $1 $resets $3 $4 echo $1 $resets $3 $4
echo $1 $resets $3 $4 > sim.cfg echo $1 $resets $3 $4 > sim.cfg
echo "Restarting CubeSatSim with new configuraation file" echo "Restarting CubeSatSim with new configuraation file"
echo
sudo systemctl restart cubesatsim sudo systemctl restart cubesatsim
elif [ "$1" = "-l" ]; then elif [ "$1" = "-l" ]; then
@ -193,14 +191,12 @@ elif [ "$1" = "-l" ]; then
fi fi
echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n"
echo $1 $2 $lat $long echo $1 $2 $lat $long
echo $1 $2 $lat $long > sim.cfg echo $1 $2 $lat $long > sim.cfg
echo "Restarting CubeSatSim with new configuraation file" echo "Restarting CubeSatSim with new configuraation file"
echo
sudo systemctl restart cubesatsim sudo systemctl restart cubesatsim
fi fi
sudo systemctl restart cubesatsim # sudo systemctl restart cubesatsim

Loading…
Cancel
Save

Powered by TurnKey Linux.