@ -220,7 +220,11 @@ sudo modprobe snd-aloop
# if [ "$2" = "n" ] ; then
if [ -z "$2" ] ; then
if [ "$2" = "n" ] ; then
noreboot=0
else
fail=$2
fi
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
FILE=/home/pi/CubeSatSim/failure_mode.txt
if [ -f "$FILE" ]; then
if [[ $(grep "\-1" $FILE) ]]; then
Powered by TurnKey Linux.