From 01bde636d91490aef21d294b4e29028f54c36e12 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 8 Jul 2024 16:49:51 -0400 Subject: [PATCH] Update config restart CubeSatSim if direwolf turned on --- config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config b/config index 515d816d..229bedf7 100755 --- a/config +++ b/config @@ -542,6 +542,10 @@ elif [ "$1" = "-d" ]; then ## echo "rebooting" # reboot=1 sudo systemctl restart command + if [[ $(arecord -l | grep card) ]]; then + echo "restarting cubesaatsim software" + sudo systemctl restart cubesatsim + fi ## sudo reboot now fi