|
|
|
@ -279,7 +279,7 @@ if [ "$1" = "" ]; then
|
|
|
|
FILE=/home/pi/CubeSatSim/failure_mode.txt
|
|
|
|
FILE=/home/pi/CubeSatSim/failure_mode.txt
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
if [[ $(grep '0' $FILE) ]]; then
|
|
|
|
if [[ $(grep '0' $FILE) ]]; then
|
|
|
|
echo "No simulated failures."
|
|
|
|
echo "No simulated failure."
|
|
|
|
else
|
|
|
|
else
|
|
|
|
fail=$(<$FILE)
|
|
|
|
fail=$(<$FILE)
|
|
|
|
echo -n "Simulated "
|
|
|
|
echo -n "Simulated "
|
|
|
|
@ -321,7 +321,7 @@ if [ "$1" = "" ]; then
|
|
|
|
# echo $fail
|
|
|
|
# echo $fail
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "No simulated failures."
|
|
|
|
echo "No simulated failure."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
# echo
|
|
|
|
# echo
|
|
|
|
|
|
|
|
|
|
|
|
|