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

Loading…
Cancel
Save

Powered by TurnKey Linux.