Fix delay to allow time to read error messages from system-upgrade.
This commit is contained in:
parent
948a713825
commit
158de95d20
1 changed files with 4 additions and 3 deletions
|
@ -47,6 +47,7 @@ check_space() {
|
|||
then
|
||||
NEEDED=$(( (${REQUIRED} - ${MYSIZE} ) / 1024 ))
|
||||
echo -e "There is not enough free space available ${VOLNAME} to install this update. Free up an additional ${NEEDED}MB, or reflash the newer version."
|
||||
echo "Exiting in 5 seconds..." && sleep 5
|
||||
systemctl start emustation &
|
||||
exit 1
|
||||
fi
|
||||
|
@ -59,7 +60,7 @@ ONLINE_STATUS=$(check_network)
|
|||
if [ ! "${ONLINE_STATUS}" == true ]
|
||||
then
|
||||
echo "System not online, cannot continue..." >/dev/console
|
||||
sleep 3
|
||||
echo "Exiting in 5 seconds..." && sleep 5
|
||||
systemctl start emustation &
|
||||
exit 0
|
||||
fi
|
||||
|
@ -76,7 +77,7 @@ LATEST_RELEASE_TAG=$(curl -H 'Cache-Control: no-cache' -Ls "${GIT_API}/releases"
|
|||
if [ "${OS_VERSION}" -ge "${LATEST_RELEASE_TAG}" ] && [ ! "${FORCE}" = "1" ]
|
||||
then
|
||||
echo "No new updates are available..." >/dev/console
|
||||
sleep 3
|
||||
echo "Exiting in 5 seconds..." && sleep 5
|
||||
systemctl start emustation &
|
||||
exit 0
|
||||
fi
|
||||
|
@ -95,7 +96,7 @@ if [ ! "${MYSUM}" == "${DLSUM}" ]
|
|||
then
|
||||
echo "Verification failed, cleaning up and exiting..." >/dev/console
|
||||
rm -f ${UPDATE_PATH}/*
|
||||
sleep 3
|
||||
sleep 5
|
||||
clear >/dev/console
|
||||
systemctl start emustation
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue