From f4750bb9eb4971833dc35c62dd70d9107c8e1344 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 21 Nov 2023 15:07:08 -0500 Subject: [PATCH] Update config stop rpitx when rebooting --- config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config b/config index 0bc7cde9..f0c677a6 100755 --- a/config +++ b/config @@ -115,6 +115,7 @@ elif [ "$1" = "-m" ]; then # sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt fi echo "rebooting" + sudo systemctl stop rpitx sudo reboot now # sudo systemctl restart cubesatsim exit @@ -123,6 +124,7 @@ elif [ "$1" = "-f" ]; then 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 echo "rebooting" + sudo systemctl stop rpitx sudo reboot now # sudo systemctl restart cubesatsim exit @@ -131,6 +133,7 @@ elif [ "$1" = "-b" ]; then 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 echo "rebooting" + sudo systemctl stop rpitx sudo reboot now # sudo systemctl restart cubesatsim exit @@ -147,6 +150,7 @@ elif [ "$1" = "-s" ]; then # sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt fi echo "rebooting" + sudo systemctl stop rpitx sudo reboot now # sudo systemctl restart cubesatsim exit @@ -441,11 +445,13 @@ elif [ "$1" = "-T" ]; then sudo sed -i 's/False/True/g' /home/pi/CubeSatSim/command_tx echo "Command state set to True to enable beacon" echo "rebooting" + sudo systemctl stop rpitx sudo reboot now else sudo sed -i 's/True/False/g' /home/pi/CubeSatSim/command_tx echo "Command state set to False to disable beacon" echo "rebooting" + sudo systemctl stop rpitx sudo reboot now fi