From a0c3dd489ff6748c2e5e481fa4961b86754592b2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Aug 2023 11:22:17 -0400 Subject: [PATCH] Update config change to sed --- config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config b/config index a5b23d91..81502814 100755 --- a/config +++ b/config @@ -375,10 +375,10 @@ elif [ "$1" = "-T" ]; then echo if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then - sudo echo "True" > /home/pi/CubeSatSim/command_tx + sudo sed -i 'False/True/g' /home/pi/CubeSatSim/command_tx echo "Command state set to True to enable beacon" else - sudo echo "False" > /home/pi/CubeSatSim/command_tx + sudo sed -i 'True/False/g' /home/pi/CubeSatSim/command_tx echo "Command state set to False to disable beacon" fi