|
|
|
@ -220,7 +220,11 @@ sudo modprobe snd-aloop
|
|
|
|
|
|
|
|
|
|
|
|
# if [ "$2" = "n" ] ; then
|
|
|
|
# if [ "$2" = "n" ] ; then
|
|
|
|
if [ -z "$2" ] ; then
|
|
|
|
if [ -z "$2" ] ; then
|
|
|
|
noreboot=0
|
|
|
|
if [ "$2" = "n" ] ; then
|
|
|
|
|
|
|
|
noreboot=0
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
fail=$2
|
|
|
|
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
noreboot=1
|
|
|
|
noreboot=1
|
|
|
|
echo "Reboot disabled"
|
|
|
|
echo "Reboot disabled"
|
|
|
|
@ -1484,6 +1488,11 @@ elif [ "$1" = "-j" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
elif [ "$1" = "-M" ]; then
|
|
|
|
elif [ "$1" = "-M" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z $fail ] then
|
|
|
|
|
|
|
|
echo "$fail has a value!"
|
|
|
|
|
|
|
|
echo $fail
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
FILE=/home/pi/CubeSatSim/failure_mode.txt
|
|
|
|
FILE=/home/pi/CubeSatSim/failure_mode.txt
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
if [[ $(grep "\-1" $FILE) ]]; then
|
|
|
|
if [[ $(grep "\-1" $FILE) ]]; then
|
|
|
|
|