From 4a91fe6c11fae30d51296f296ee9bddc532dfede Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Aug 2023 11:18:03 -0400 Subject: [PATCH] Update config to use sudo for echo --- config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config b/config index b50dfca2..a5b23d91 100755 --- a/config +++ b/config @@ -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"