mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
stay on menupoint
This commit is contained in:
parent
b79cace8ae
commit
38daeae110
2 changed files with 6 additions and 1 deletions
|
@ -201,11 +201,13 @@ _mainmenu() {
|
||||||
case $(cat "${_ANSWER}") in
|
case $(cat "${_ANSWER}") in
|
||||||
"1") if [[ "${_DESTDIR}" == "/" ]]; then
|
"1") if [[ "${_DESTDIR}" == "/" ]]; then
|
||||||
_abort_running_system
|
_abort_running_system
|
||||||
|
_NEXTITEM=1
|
||||||
else
|
else
|
||||||
_prepare_storagedrive
|
_prepare_storagedrive
|
||||||
fi ;;
|
fi ;;
|
||||||
"2") if [[ "${_DESTDIR}" == "/" ]]; then
|
"2") if [[ "${_DESTDIR}" == "/" ]]; then
|
||||||
_abort_running_system
|
_abort_running_system
|
||||||
|
_NEXTITEM=2
|
||||||
else
|
else
|
||||||
_install_packages
|
_install_packages
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
|
@ -112,7 +112,10 @@ _bcfs_raid_level() {
|
||||||
else
|
else
|
||||||
# replicas
|
# replicas
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
_dialog --no-cancel --title " Replication Level " --menu "" 9 30 5 "2" "Level 2" "3" "Level 3" "> CUSTOM" "Custom Level" 2>"${_ANSWER}" || return 1
|
_dialog --no-cancel --title " Replication Level " --menu "" 9 30 5 \
|
||||||
|
"2" "Level 2" \
|
||||||
|
"3" "Level 3" \
|
||||||
|
"> CUSTOM" "Custom Level" 2>"${_ANSWER}" || return 1
|
||||||
_BCFS_REP_COUNT=$(cat "${_ANSWER}")
|
_BCFS_REP_COUNT=$(cat "${_ANSWER}")
|
||||||
if [[ ${_BCFS_REP_COUNT} == "> CUSTOM" ]]; then
|
if [[ ${_BCFS_REP_COUNT} == "> CUSTOM" ]]; then
|
||||||
_dialog --inputbox "Enter custom replication level (number):" 8 65 \
|
_dialog --inputbox "Enter custom replication level (number):" 8 65 \
|
||||||
|
|
Loading…
Reference in a new issue