Update update changed reboot

beta-pl
Alan Johnston 2 years ago committed by GitHub
parent 927e63c0ee
commit 8167df5d5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -268,12 +268,14 @@ if [ $changed -eq 1 ]; then
echo echo
fi fi
if [ $FLAG -eq 1 ]; then if [ "$noreboot" = "0" ] ; then
if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload and reboot" echo "systemctl daemon-reload and reboot"
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo reboot -h now sudo reboot -h now
# sudo systemctl restart cubesatsim # sudo systemctl restart cubesatsim
else else
grep 'changed' /home/pi/CubeSatSim/.updated grep 'changed' /home/pi/CubeSatSim/.updated
if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
echo "reboot" echo "reboot"
@ -282,6 +284,10 @@ else
else else
echo "nothing to do." echo "nothing to do."
fi fi
fi
else
echo "Reboot disabled"
fi fi
echo "CubeSatSim update complete." echo "CubeSatSim update complete."

Loading…
Cancel
Save

Powered by TurnKey Linux.