From d93ef609c1535fd9f1908409a20ff3e7ba8c5e92 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 18 Mar 2026 13:14:44 -0400 Subject: [PATCH] Update pacsat.sh on first run, download zip file of spacecraft --- groundstation/pacsat.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 545dea57..9dcf8742 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -76,10 +76,15 @@ echo if [ ! -d "/home/pi/PacSatGround" ] ; then - mkdir /home/pi/PacSatGround - + sudo rm -r /home/pi/PacSatGround + cd + sudo rm PacSatGround.zip + wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p-s/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 put in your callsign, add the Pacsatsim spacecraft then restart the Pacsat Ground Station" + echo "The first time you run the Ground Station, you will need to put in your callsign" sleep 10 @@ -87,10 +92,13 @@ fi if [ ! -d "/home/pi/PacSatGroundLoop" ] ; then - mkdir /home/pi/PacSatGroundLoop + sudo rm PacSatGround.zip + wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p-s/spacecraft/PacSatGround_0.46o/PacSatGround.zip + unzip PacSatGround.zip -d PacSatGroundLoop + sudo rm PacSatGround.zip echo - echo "The first time you run the Ground Station, you will need to put in your callsign, add the Pacsatsim spacecraft then restart the Pacsat Ground Station" + echo "The first time you run the Ground Station, you will need to put in your callsign" sleep 10