From 26451db672fbebcefba9ba7c1164025e84de4a45 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 10 Jul 2021 11:45:20 -0400 Subject: [PATCH] only backup properties if no backup --- groundstation/fox-startup.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/groundstation/fox-startup.sh b/groundstation/fox-startup.sh index 42d8818f..ebc5f1ad 100755 --- a/groundstation/fox-startup.sh +++ b/groundstation/fox-startup.sh @@ -26,9 +26,12 @@ 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 - + + FILE=/home/pi/FoxTelemetryData/FoxTelem.properties.0 + if [ ! -f "$FILE" ]; then + cp /home/pi/FoxTelemetryData/FoxTelem.properties /home/pi/FoxTelemetryData/FoxTelem.properties.0 + fi + 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