added -n for no reset for callsign and lat long

pull/88/head
alanbjohnston 5 years ago committed by GitHub
parent f1749090be
commit fbe211e613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.