Update config use sudo for failure_modes

sim-fail
Alan Johnston 3 months ago committed by GitHub
parent 4dc302e155
commit 59ad1051fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -564,7 +564,7 @@ elif [ "$1" = "-t" ]; then
else
sim="no"
echo "Simulated Telemetry is OFF"
echo "-1" > /home/pi/CubeSatSim/failure_mode.txt # make sure to turn off any simulated failures
sudo echo "-1" > /home/pi/CubeSatSim/failure_mode.txt # make sure to turn off any simulated failures
fi
# echo
@ -1632,7 +1632,7 @@ elif [ "$1" = "-M" ]; then
# echo $MODE
echo
echo $MODE > /home/pi/CubeSatSim/failure_mode.txt
sudo echo $MODE > /home/pi/CubeSatSim/failure_mode.txt
echo "Changing simulated failure mode to $MODE" | wall

Loading…
Cancel
Save

Powered by TurnKey Linux.