diff --git a/packages/jelos/sources/scripts/system-upgrade b/packages/jelos/sources/scripts/system-upgrade index c8a74d68f..e5a950c1a 100755 --- a/packages/jelos/sources/scripts/system-upgrade +++ b/packages/jelos/sources/scripts/system-upgrade @@ -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