From 592dc6929692befef3dfae3e946e1bd6c79120b5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 16:58:26 -0400 Subject: [PATCH] Update config for -g reset pacsat and ground station settings --- config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config b/config index e8720aff..3fd7ee70 100755 --- a/config +++ b/config @@ -1424,7 +1424,7 @@ elif [ "$1" = "-g" ]; then if [ "$rset" = "y" ] || [ "$rset" = "yes" ] ; then - echo "Resetting and shutting down." + echo "Resetting" echo "AMSAT 0 0 0 no 3 434.9 435 no 0 0" > /home/pi/CubeSatSim/sim.cfg @@ -1457,7 +1457,15 @@ elif [ "$1" = "-g" ]; then cat /dev/null > ~/.bash_history && history -c + sudo systemctl stop pacsatsim &>/dev/null + sudo rm -r /home/pi/PacSat + + sudo rm -r /home/pi/PacSatGround + + sudo rm -r /home/pi/PacSatGroundLoop + if [ "$noreboot" = "0" ] ; then + echo "Shutting down." sudo shutdown now else echo