added norestart variable

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

@ -2,6 +2,12 @@
# echo $1 # echo $1
if [ "$2" = "-n" ]; then
norestart=1
else
norestart=0
fi
if [ "$1" = "" ]; then if [ "$1" = "" ]; then
value=`cat /home/pi/CubeSatSim/.mode` value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null echo "$value" > /dev/null
@ -164,7 +170,7 @@ elif [ "$1" = "-c" ]; then
echo $callsign $2 $3 $4 $5 echo $callsign $2 $3 $4 $5
echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg
if [ "$2" = "-n" ]; then if [ "$norestart" = "1" ]; then
echo echo
else else
echo "Restarting CubeSatSim with new configuraation file" echo "Restarting CubeSatSim with new configuraation file"
@ -207,7 +213,7 @@ elif [ "$1" = "-c" ]; then
echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg
echo echo
if [ "$2" = "-n" ]; then if [ "$norestart" = "1" ]; then
echo echo
else else
echo "Restarting CubeSatSim with new configuraation file" echo "Restarting CubeSatSim with new configuraation file"

Loading…
Cancel
Save

Powered by TurnKey Linux.