From f4e3ab67b983d366f3e7fdd468f785f43090bf49 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Aug 2023 12:13:17 -0400 Subject: [PATCH] Update install to create command_tx and command_count.txt --- install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/install b/install index 33ef95b3..509cb39f 100755 --- a/install +++ b/install @@ -10,6 +10,22 @@ else echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg 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 CubeSatSim/config -c -n