diff --git a/config b/config index ca2fb56a..03bed40b 100755 --- a/config +++ b/config @@ -2,6 +2,12 @@ # echo $1 +if [ "$2" = "-n" ]; then + norestart=1 +else + norestart=0 +fi + if [ "$1" = "" ]; then value=`cat /home/pi/CubeSatSim/.mode` echo "$value" > /dev/null @@ -164,7 +170,7 @@ elif [ "$1" = "-c" ]; then echo $callsign $2 $3 $4 $5 echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg - if [ "$2" = "-n" ]; then + if [ "$norestart" = "1" ]; then echo else 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 - if [ "$2" = "-n" ]; then + if [ "$norestart" = "1" ]; then echo else echo "Restarting CubeSatSim with new configuraation file"