From 91f76f46039ee88fd052b879ff565cc333fada40 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 8 Aug 2025 10:35:32 -0400 Subject: [PATCH] Update config changed failure print --- config | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/config b/config index d5d87517..93c3da75 100755 --- a/config +++ b/config @@ -276,6 +276,20 @@ if [ "$1" = "" ]; then fi echo + echo + FILE=/home/pi/CubeSatSim/failure_mode.txt + if [ -f "$FILE" ]; then + if [[ $(grep '0' $FILE) ]]; then + echo "No simulated failures." + else + echo -n "Simulated failure mode is: " + cat $FILE + fi + else + echo "No simulated failures." + fi + echo + if [ "$9" = "yes" ] || [ "$9" = "y" ]; then echo "Balloon mode is ON" else @@ -336,11 +350,6 @@ if [ "$1" = "" ]; then echo "Transmit beacon telemetry is ON" fi - echo - echo -n "Simulated failure mode is: " - cat /home/pi/CubeSatSim/failure_mode.txt - echo - echo echo -e "Current sim.cfg configuration file:" # echo