pull/87/head
alanbjohnston 5 years ago committed by GitHub
parent 668b4a8e58
commit 97c0976195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.