From 928d86589a65a5baa788327601e8ba6b85fc8bd9 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 21 Sep 2024 16:28:54 -0400 Subject: [PATCH] Update config add clear logs to reset -g --- config | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config b/config index 8f627896..1ff093ad 100755 --- a/config +++ b/config @@ -1378,7 +1378,7 @@ elif [ "$1" = "-g" ]; then echo "AMSAT 0 0 0 no 3 434.9 435 no 0 0" > /home/pi/CubeSatSim/sim.cfg - sudo echo "f" > /home/pi/CubeSatSim/.mode + sudo echo "b" > /home/pi/CubeSatSim/.mode sudo rm /home/pi/CubeSatSim/battery_saver > /dev/null 2>&1 @@ -1389,6 +1389,15 @@ 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 systemctl stop cubesatsim + sudo systemctl stop rpitx + sudo systemctl stop command + + sudo mv -f /home/pi/CubeSatSim/telem.txt /home/pi/CubeSatSim/telem.txt.bk + + sudo journalctl --rotate + sudo journalctl --vacuum-time=1s reboot=1 else