Update config don't restart/stop pacsatsim for beacon on/off

master-b-p-s
Alan Johnston 2 weeks ago committed by GitHub
parent d05f624998
commit cf44ee82d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1158,9 +1158,9 @@ elif [ "$1" = "-o" ]; then
echo "Turn beacon telemetry ON" echo "Turn beacon telemetry ON"
sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1 sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1
sudo systemctl restart transmit sudo systemctl restart transmit
if [ "$MODE" = "p" ]; then # if [ "$MODE" = "p" ]; then
sudo systemctl restart pacsatsim # sudo systemctl restart pacsatsim
fi # fi
else else
echo "Transmit beacon telemetry is on" echo "Transmit beacon telemetry is on"
@ -1168,12 +1168,12 @@ elif [ "$1" = "-o" ]; then
echo "Turn beacon telemetry OFF" echo "Turn beacon telemetry OFF"
touch /home/pi/CubeSatSim/beacon_off touch /home/pi/CubeSatSim/beacon_off
if [ "$MODE" = "p" ]; then # if [ "$MODE" = "p" ]; then
sudo systemctl stop pacsatsim # sudo systemctl stop pacsatsim
sudo systemctl stop transmit # sudo systemctl stop transmit
else # else
sudo systemctl restart transmit sudo systemctl restart transmit
fi # fi
fi fi
sleep 3 sleep 3
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.