diff --git a/config b/config index 49a095b9..134819d1 100755 --- a/config +++ b/config @@ -1561,7 +1561,8 @@ elif [ "$1" = "-M" ]; then # echo $MODE echo - sudo echo $MODE > /home/pi/CubeSatSim/failure_mode.txt + sudo rm /home/pi/CubeSatSim/failure_mode.txt + echo $MODE > /home/pi/CubeSatSim/failure_mode.txt echo "Changing simulated failure mode to $MODE" | wall