added GUI menu

pull/131/head
alanbjohnston 4 years ago committed by GitHub
parent b1072cd232
commit e89ab2b27c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,6 +9,13 @@ sudo killall -9 FoxTelem &>/dev/null
FILE=/home/pi/FoxTelemetryData/.foxprofile FILE=/home/pi/FoxTelemetryData/.foxprofile
if [ ! -f "$FILE" ]; then if [ ! -f "$FILE" ]; then
profile=$(zenity --list 2>/dev/null --width=710 --height=1200 --title="Choose your default FoxTelem profile:" --column="Profile" --column="Application" Fox-in-a-Box "Receive and decode telemetry from the AMSAT Fox satellites" "CubeSatSim Ground Station" "Receive and decode telemetry from an AMSAT CubeSatSim")
echo $profile
if [ -z "$profile" ]; then
echo "You need to choose your default FoxTelem profile." echo "You need to choose your default FoxTelem profile."
echo echo
echo "The choices are:" echo "The choices are:"
@ -20,8 +27,10 @@ if [ ! -f "$FILE" ]; then
echo "Which profile do you choose? Enter 1 or 2" echo "Which profile do you choose? Enter 1 or 2"
read -r ANS read -r ANS
fi
if [ "$ANS" = "1" ]; then if [ "$ANS" = "1" ] || [ "$profile" = "Fox-in-a-Box" ] ; then
echo "You have chosen the Fox-in-a-Box profile." echo "You have chosen the Fox-in-a-Box profile."
echo "b" > /home/pi/FoxTelemetryData/.foxprofile echo "b" > /home/pi/FoxTelemetryData/.foxprofile
@ -71,7 +80,7 @@ if [ ! -f "$FILE" ]; then
fi fi
elif [ "$ANS" = "2" ]; then elif [ "$ANS" = "2" ] || [ "$profile" = "CubeSatSim Ground Station" ] ; then
echo "You have chosen the CubeSatSim Ground Station profile." echo "You have chosen the CubeSatSim Ground Station profile."
echo "c" > /home/pi/FoxTelemetryData/.foxprofile echo "c" > /home/pi/FoxTelemetryData/.foxprofile

Loading…
Cancel
Save

Powered by TurnKey Linux.