From d058852703171c2fe87fee90fe178b8afc012071 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 3 Jul 2021 10:16:44 -0400 Subject: [PATCH] copy profile before changing, set CubeSatSim settings --- groundstation/fox-startup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/groundstation/fox-startup.sh b/groundstation/fox-startup.sh index 0f3b340f..c042a413 100755 --- a/groundstation/fox-startup.sh +++ b/groundstation/fox-startup.sh @@ -26,7 +26,9 @@ if [ ! -f "$FILE" ]; then echo "You have chosen the Fox-in-a-Box profile." echo "b" > /home/pi/FoxTelemetryData/.foxprofile echo - + + cp /home/pi/FoxTelemetryData/FoxTelem.properties /home/pi/FoxTelemetryData/FoxTelem.properties.0 + echo "Enter your CALLSIGN. If you don't have a callsign, enter a text string that will be displayed on the FoxTelem leader board at https://amsat.org/tlm" read callsign sudo sed -i "s/callsign=NONE/callsign=$callsign/g" /home/pi/FoxTelemetryData/FoxTelem.properties @@ -56,7 +58,13 @@ if [ ! -f "$FILE" ]; then echo "You have chosen the CubeSatSim Ground Station profile." echo "c" > /home/pi/FoxTelemetryData/.foxprofile - + + cp /home/pi/FoxTelemetryData-CubeSatSim/FoxTelem.properties /home/pi/FoxTelemetryData-CubeSatSim/FoxTelem.properties.0 + + sudo sed -i "s/useCostas=false/useCostas=true/g" /home/pi/FoxTelemetryData-CubeSatSim/FoxTelem.properties + + sudo sed -i "s/findSignal=false/findSignal=true/g" /home/pi/FoxTelemetryData-CubeSatSim/FoxTelem.properties + else echo "Please enter only 1 or 2"