diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 23f115e1..f9285165 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -127,10 +127,17 @@ else wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p/spacecraft/PacSatGround_0.46o/PacSatGround.zip unzip PacSatGround.zip -d PacSatGround sudo rm PacSatGround.zip - - echo - echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign" - sleep 10 + + FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties + if [ -f "$FILE" ]; then + FILE2=/home/pi/PacSatGround/spacecraft/PacSatSim.properties + sudo rm $FILE2 + cp $FILE $FILE2 + else + echo + echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign" + sleep 10 + fi fi