From 362885261e292baeb440f273e928c146c12b4463 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 1 Aug 2023 11:05:48 -0400 Subject: [PATCH] changed grep echo to one line --- config | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/config b/config index dc8441c6..b218c801 100755 --- a/config +++ b/config @@ -76,9 +76,7 @@ elif [ "$1" = "-m" ]; then elif [ "$1" = "-f" ]; then echo "changing CubeSatSim to FSK mode" sudo echo "f" > /home/pi/CubeSatSim/.mode - if ! grep -q force_turbo=1 /boot/config.txt ; then - sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt' - fi + if ! grep -q force_turbo=1 /boot/config.txt ; then sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'; fi echo "rebooting" sudo reboot now # sudo systemctl restart cubesatsim @@ -86,9 +84,7 @@ elif [ "$1" = "-f" ]; then elif [ "$1" = "-b" ]; then echo "changing CubeSatSim to BPSK mode" sudo echo "b" > /home/pi/CubeSatSim/.mode - if ! grep -q force_turbo=1 /boot/config.txt ; then - sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt' - fi + if ! grep -q force_turbo=1 /boot/config.txt ; then sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'; fi echo "rebooting" sudo reboot now # sudo systemctl restart cubesatsim