update reboots instead of restarts

sr-frs-payload-all-modes
Alan Johnston 2 years ago committed by GitHub
parent 0fa681821b
commit a18f53b972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,20 +64,6 @@ if [[ $(grep 'update' /home/pi/CubeSatSim/.updated) ]]; then
/home/pi/CubeSatSim/update
fi
if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload and restart"
sudo systemctl daemon-reload
sudo systemctl restart cubesatsim
else
grep 'changed' /home/pi/CubeSatSim/.updated
if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
echo "systemctl restart cubesatsim"
sudo systemctl restart cubesatsim
else
echo "nothing to do."
fi
fi
if [ ! -d "/home/pi/PiSSTVpp" ]; then
sudo apt-get update && sudo apt-get dist-upgrade -y
@ -155,5 +141,21 @@ git pull > .updated_p
else
echo "nothing to do for pi-power-button."
fi
if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload and reboot"
sudo systemctl daemon-reload
sudo reboot -h now
# sudo systemctl restart cubesatsim
else
grep 'changed' /home/pi/CubeSatSim/.updated
if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
echo "reboot"
sudo reboot -h now
# sudo systemctl restart cubesatsim
else
echo "nothing to do."
fi
fi
echo "CubeSatSim update complete."

Loading…
Cancel
Save

Powered by TurnKey Linux.