Update config fix -M

master-bo
Alan Johnston 2 months ago committed by GitHub
parent 3184a53350
commit 4b323d084d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.