From 9b73b2851231f6d29e9dd855522dd0eba3626553 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 31 May 2026 23:31:48 -0400 Subject: [PATCH] Update pacsat.sh don't prompt to change mode y/n --- groundstation/pacsat.sh | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index fcdf9e81..85db5762 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -71,29 +71,15 @@ set -- $value MODE=$1 if [ ! "$MODE" = "P" ] && [ ! "$loopback" = "1" ] ; then + echo + echo "Changing to PacSat Ground Station Mode." + echo "You might reboot" + echo + sleep 5 + /home/pi/CubeSatSim/config -I +fi - echo - echo "Mode is not PacSat Ground Station" - echo - echo "Would you like to change to PacSat Ground Station mode? (y/n)?" - - read -r ANS - - if [ "$ANS" = "y" ]; then - - /home/pi/CubeSatSim/config -I -# exit - - else - - echo - echo "You can run the PacSat Ground Station after you change mode." - sleep 10 - exit - - fi - -elif [ "$loopback" = "1" ] ; then +if [ "$loopback" = "1" ] ; then # if [ ! "$MODE" = "p" ] ; then echo