Update config to reboot after command state change

sr-frs-rx
Alan Johnston 2 years ago committed by GitHub
parent dea2f4b4b2
commit 5311989ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -377,11 +377,11 @@ elif [ "$1" = "-T" ]; then
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
sudo sed -i 's/False/True/g' /home/pi/CubeSatSim/command_tx sudo sed -i 's/False/True/g' /home/pi/CubeSatSim/command_tx
echo "Command state set to True to enable beacon" echo "Command state set to True to enable beacon"
sudo systemctl restart rpitx sudo reboot now
else else
sudo sed -i 's/True/False/g' /home/pi/CubeSatSim/command_tx sudo sed -i 's/True/False/g' /home/pi/CubeSatSim/command_tx
echo "Command state set to False to disable beacon" echo "Command state set to False to disable beacon"
sudo systemctl restart rpitx sudo reboot now
fi fi
elif [ "$1" = "-R" ]; then elif [ "$1" = "-R" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.