Update pacsat-config.sh just delete directory for ground station reset

master-b-p
Alan Johnston 1 week ago committed by GitHub
parent 6cbb87c3e2
commit d1e80499a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -30,6 +30,7 @@ sudo killall -9 direwolf &>/dev/null
echo " 4. Reset PacSat Satellite" echo " 4. Reset PacSat Satellite"
echo echo
echo "Which do you choose? Enter 1 - 4" echo "Which do you choose? Enter 1 - 4"
echo
read -r ANS read -r ANS
@ -56,6 +57,7 @@ sudo killall -9 direwolf &>/dev/null
echo " 2. Set Remote PacSat Satellite Callsign in Ground Station configuration" echo " 2. Set Remote PacSat Satellite Callsign in Ground Station configuration"
echo echo
echo " 3. Reset PacSat Ground Station Configuration" echo " 3. Reset PacSat Ground Station Configuration"
echo
read -r CH read -r CH
@ -82,6 +84,7 @@ sudo killall -9 direwolf &>/dev/null
echo $oldcallsign echo $oldcallsign
echo "Enter new callsign in all capitals: " echo "Enter new callsign in all capitals: "
echo
read callsign read callsign
if [ -z $callsign ] ; then if [ -z $callsign ] ; then
@ -122,6 +125,7 @@ sudo killall -9 direwolf &>/dev/null
echo echo
echo "Enter new callsign in all capitals: " echo "Enter new callsign in all capitals: "
echo
read callsign read callsign
if [ -z $callsign ] ; then if [ -z $callsign ] ; then
@ -147,27 +151,28 @@ sudo killall -9 direwolf &>/dev/null
echo "You have chosen to reset the PacSat Ground Station Configuration" echo "You have chosen to reset the PacSat Ground Station Configuration"
echo echo
echo "Next time you run the Ground Station you will need to Add the PacSatSim spacecraft" # echo "Next time you run the Ground Station you will need to Add the PacSatSim spacecraft"
echo # echo
if [ "$ANS" = "1" ] ; then if [ "$ANS" = "1" ] ; then
sudo rm -r /home/pi/PacSatGround sudo rm -r /home/pi/PacSatGround
cd # cd
sudo rm PacSatGround.zip # sudo rm PacSatGround.zip
wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p-s/spacecraft/PacSatGround_0.46o/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 # unzip PacSatGround.zip -d PacSatGround
sudo rm PacSatGround.zip # sudo rm PacSatGround.zip
else else
sudo rm -r /home/pi/PacSatGroundLoop sudo rm -r /home/pi/PacSatGroundLoop
cd # cd
sudo rm PacSatGround.zip # sudo rm PacSatGround.zip
wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p-s/spacecraft/PacSatGround_0.46o/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 # unzip PacSatGround.zip -d PacSatGroundLoop
sudo rm PacSatGround.zip # sudo rm PacSatGround.zip
fi fi
else else
echo "Please choose an option 1-3" echo "Please choose an option 1-3"
echo
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.