From 757dd34699d52f2f0d9bd265f3776769be5c0aed Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 9 Aug 2025 23:43:33 -0400 Subject: [PATCH] Update config print fail --- config | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config b/config index 736dad41..b4aa3ee3 100755 --- a/config +++ b/config @@ -220,7 +220,11 @@ sudo modprobe snd-aloop # if [ "$2" = "n" ] ; then if [ -z "$2" ] ; then - noreboot=0 + if [ "$2" = "n" ] ; then + noreboot=0 + else + fail=$2 + fi else noreboot=1 echo "Reboot disabled" @@ -1484,6 +1488,11 @@ elif [ "$1" = "-j" ]; then elif [ "$1" = "-M" ]; then + if [ -z $fail ] then + echo "$fail has a value!" + echo $fail + fi + FILE=/home/pi/CubeSatSim/failure_mode.txt if [ -f "$FILE" ]; then if [[ $(grep "\-1" $FILE) ]]; then