From 4b323d084ddb81cd22546cf0678dfd32bb11d6ba Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 1 Aug 2026 10:42:54 -0400 Subject: [PATCH] Update config fix -M --- config | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config b/config index 42bb9f89..7a8c9f2c 100755 --- a/config +++ b/config @@ -1583,10 +1583,11 @@ elif [ "$1" = "-j" ]; then elif [ "$1" = "-M" ]; then - if [ $fail ]; then - MODE=$fail - else +# if [ $fail ]; then +# MODE=$fail +# else + if [ -z "$param2" ] ; then FILE=/home/pi/CubeSatSim/failure_mode.txt if [ -f "$FILE" ]; then if [[ $(grep "\-1" $FILE) ]]; then @@ -1659,6 +1660,8 @@ elif [ "$1" = "-M" ]; then echo "Enter the failure number to set: 0 - 11" read MODE echo + else + MODE="$param2" fi if [ "$MODE" = "0" ]; then