Update config set $2 to mode

sim-fail-2
Alan Johnston 4 months ago committed by GitHub
parent 708f9359d0
commit 9c9eb24b8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1490,9 +1490,8 @@ elif [ "$1" = "-j" ]; then
elif [ "$1" = "-M" ]; then elif [ "$1" = "-M" ]; then
if [ $fail ]; then if [ $fail ]; then
echo "fail has a value!" MODE=$fail
echo $fail else
fi
FILE=/home/pi/CubeSatSim/failure_mode.txt FILE=/home/pi/CubeSatSim/failure_mode.txt
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
@ -1562,6 +1561,7 @@ elif [ "$1" = "-M" ]; then
# echo "Enter the failure number to set: 0 - 10" # 10 sometimes gets stuck on carrier # echo "Enter the failure number to set: 0 - 10" # 10 sometimes gets stuck on carrier
echo "Enter the failure number to set: 0 - 9" echo "Enter the failure number to set: 0 - 9"
read MODE read MODE
fi
echo echo
if [ "$MODE" = "0" ]; then if [ "$MODE" = "0" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.