From aba6b4abb8ce8924fd971774d878d830c3a8fb4a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 28 Jan 2026 10:49:23 -0500 Subject: [PATCH] Update config shutdown with -g --- config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config b/config index aa0758e0..db2860fd 100755 --- a/config +++ b/config @@ -1370,7 +1370,7 @@ elif [ "$1" = "-g" ]; then if [ "$rset" = "y" ] || [ "$rset" = "yes" ] ; then - echo "Resetting" + echo "Resetting and shutting down." echo "AMSAT 0 0 0 no 3 434.9 435 no 0 0" > /home/pi/CubeSatSim/sim.cfg @@ -1384,7 +1384,9 @@ elif [ "$1" = "-g" ]; then sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1 - sudo echo "0" > /home/pi/CubeSatSim/command_count.txt + sudo echo "0" > /home/pi/CubeSatSim/command_count.txt + + sudo rm /home/pi/CubeSatSim/failure_mode.txt > /dev/null 2>&1 sudo systemctl stop cubesatsim sudo systemctl stop transmit @@ -1398,6 +1400,8 @@ elif [ "$1" = "-g" ]; then rm -rf ~/.config/chromium/Singleton* cat /dev/null > ~/.bash_history && history -c + + sudo shutdown now # reboot=1 else