From 42935da64a6b06eac648d8078d4269734470ef40 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 22 Mar 2026 20:35:22 -0400 Subject: [PATCH] Update pacsat-config.sh switch to non Desktop properties file --- groundstation/pacsat-config.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/groundstation/pacsat-config.sh b/groundstation/pacsat-config.sh index 275128bc..fa64ddc5 100755 --- a/groundstation/pacsat-config.sh +++ b/groundstation/pacsat-config.sh @@ -114,11 +114,14 @@ sudo killall -9 direwolf &>/dev/null echo "You have chosen to set the remote CubeSatSim PacSat Satellite callsign in ground station configuration" echo + + PROPERTIES=/home/pi/PacSatGround/spacecraft/PacSatSim.properties + PROPERTIES_L=/home/pi/PacSatGroundLoop/spacecraft/PacSatSim.properties if [ "$ANS" = "1" ] ; then - oldcallsign=$(grep -oP '(?<=bbsCallsign=).*(?=-)' /home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties ) + oldcallsign=$(grep -oP '(?<=bbsCallsign=).*(?=-)' $PROPERTIES ) else - oldcallsign=$(grep -oP '(?<=bbsCallsign=).*(?=-)' /home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties ) + oldcallsign=$(grep -oP '(?<=bbsCallsign=).*(?=-)' $PROPERTIES_L ) fi echo "Current value of remote PacSat callsign is" echo $oldcallsign @@ -135,9 +138,9 @@ sudo killall -9 direwolf &>/dev/null else if [ "$ANS" = "1" ] ; then - sudo sed -i "s/$oldcallsign/$callsign/g" /home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties + sudo sed -i "s/$oldcallsign/$callsign/g" $PROPERTIES else - sudo sed -i "s/$oldcallsign/$callsign/g" /home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties + sudo sed -i "s/$oldcallsign/$callsign/g" $PROPERTIES_L fi echo echo "Changing callsign to "