diff --git a/config b/config index 6cd8cdf7..bdeec16e 100755 --- a/config +++ b/config @@ -91,9 +91,6 @@ elif [ "$1" = "-m" ]; then echo "Editing the Simulated Telemetry setting in" echo "the configuration file for CubeSatSim" echo - echo "Return keeps current value." -# echo -e "Current sim.cfg configuration file:" -# echo value=`cat /home/pi/CubeSatSim/sim.cfg` echo "$value" > /dev/null @@ -111,17 +108,19 @@ elif [ "$1" = "-m" ]; then echo "Do you want Simulated Telemetry ON (y/n) " read sim - + echo + if [ "$sim" = "y" ] ; then - $sim = "yes" + sim="yes" echo "Simulated Telemetry is ON" else - $sim = "no" + sim="no" echo "Simulated Telemetry is OFF" fi + echo echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" - + echo echo $callsign $2 $3 $4 $sim echo $callsign $2 $3 $4 $sim > /home/pi/CubeSatSim/sim.cfg echo