Update config to use sudo for echo

sr-frs-rx
Alan Johnston 2 years ago committed by GitHub
parent 8f90da2c41
commit 4a91fe6c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -375,10 +375,10 @@ elif [ "$1" = "-T" ]; then
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "True" > /home/pi/CubeSatSim/command_tx
sudo echo "True" > /home/pi/CubeSatSim/command_tx
echo "Command state set to True to enable beacon"
else
echo "False" > /home/pi/CubeSatSim/command_tx
sudo echo "False" > /home/pi/CubeSatSim/command_tx
echo "Command state set to False to disable beacon"
fi
@ -397,7 +397,7 @@ elif [ "$1" = "-R" ]; then
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "0" > /home/pi/CubeSatSim/command_count.txt
sudo echo "0" > /home/pi/CubeSatSim/command_count.txt
echo "Commands count reset to 0"
else
echo "Commands count not reset"

Loading…
Cancel
Save

Powered by TurnKey Linux.