Update update pi-power-button uses FLAG=1 to reboot

beta-v1.3.1.1-sim
Alan Johnston 2 years ago committed by GitHub
parent ec1d595093
commit d7b182c1ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -143,20 +143,22 @@ git pull --no-rebase > .updated_p
echo "updating pi-power-button." echo "updating pi-power-button."
script/install script/install
FLAG=1
echo "You need to reboot to complete this update. Reboot now (y/n)?" # echo "You need to reboot to complete this update. Reboot now (y/n)?"
read -r ANS # read -r ANS
if [ "$ANS" = "y" ]; then # if [ "$ANS" = "y" ]; then
sudo reboot now # sudo reboot now
else # else
echo "The CubeSatSim software may not work correctly until you reboot." # echo "The CubeSatSim software may not work correctly until you reboot."
fi # fi
else else
echo "nothing to do for pi-power-button." echo "nothing to do for pi-power-button."

Loading…
Cancel
Save

Powered by TurnKey Linux.