mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix exit on local medium
This commit is contained in:
parent
d2a7352e97
commit
4009b43131
1 changed files with 10 additions and 1 deletions
|
@ -94,13 +94,22 @@ _run_update_installer() {
|
||||||
if [[ "${TTY}" == "tty1" ]]; then
|
if [[ "${TTY}" == "tty1" ]]; then
|
||||||
_COUNT=0
|
_COUNT=0
|
||||||
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | New Environment"
|
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | New Environment"
|
||||||
|
: >/.archboot
|
||||||
while true; do
|
while true; do
|
||||||
sleep 1
|
sleep 1
|
||||||
_COUNT=$((_COUNT+1))
|
_COUNT=$((_COUNT+1))
|
||||||
# abort after 10 seconds
|
# abort after 10 seconds
|
||||||
_progress "$((_COUNT*10))" "Waiting $((10-_COUNT)) second(s) to stop the process with CTRL-C..."
|
_progress "$((_COUNT*10))" "Waiting $((10-_COUNT)) second(s) to stop the process with CTRL-C..."
|
||||||
[[ "${_COUNT}" == 10 ]] && break
|
if [[ "${_COUNT}" == 10 ]]; then
|
||||||
|
rm /.archboot
|
||||||
|
break
|
||||||
|
fi
|
||||||
done | _dialog --title " Stop Processing? " --no-mouse --gauge "Waiting 10 seconds to stop the process with CTRL-C..." 6 60 0
|
done | _dialog --title " Stop Processing? " --no-mouse --gauge "Waiting 10 seconds to stop the process with CTRL-C..." 6 60 0
|
||||||
|
if [[ -f /.archboot ]]; then
|
||||||
|
rm /.archboot
|
||||||
|
clear
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 2571000 ]]; then
|
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 2571000 ]]; then
|
||||||
_run_latest
|
_run_latest
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue