Update config print fail

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.