From 2fb3b02f10ab5b119891897827e346d461e7886e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 6 Mar 2024 14:13:53 -0500 Subject: [PATCH] Update config if -B changed in FSK BPSK restart --- config | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config b/config index 3219d2bd..05e902d8 100755 --- a/config +++ b/config @@ -523,11 +523,13 @@ elif [ "$1" = "-B" ]; then echo "$value" > /dev/null set -- $value -# if [ "$1" = "a" ] || [ "$1" = "s" ] || [ "$1" = "m" ] ; then + if [ "$1" = "a" ] || [ "$1" = "s" ] || [ "$1" = "m" ] ; then echo "rebooting" - # sudo systemctl restart cubesatsim - sudo reboot now -# fi + sudo reboot now + else + echo "restarting" + sudo systemctl restart cubesatsim + fi fi elif [ "$1" = "-q" ]; then