Update install to create command_tx and command_count.txt

sr-frs-rx
Alan Johnston 2 years ago committed by GitHub
parent 8438e53d87
commit f4e3ab67b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,6 +10,22 @@ else
echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg
fi fi
FILE=/home/pi/CubeSatSim/command_tx
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "creating $FILE"
echo "True\n" > /home/pi/CubeSatSim/command_tx
fi
FILE=/home/pi/CubeSatSim/command_count.txt
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "creating $FILE"
echo "0\n" > /home/pi/CubeSatSim/command_count.txt
fi
cd cd
CubeSatSim/config -c -n CubeSatSim/config -c -n

Loading…
Cancel
Save

Powered by TurnKey Linux.