mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix dialog
This commit is contained in:
parent
fa2094076b
commit
a5e0fbfaa3
1 changed files with 3 additions and 3 deletions
|
@ -81,13 +81,13 @@ update_environment() {
|
||||||
UPDATE_ENVIRONMENT=""
|
UPDATE_ENVIRONMENT=""
|
||||||
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt "2571000" ]]; then
|
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt "2571000" ]]; then
|
||||||
if ! [[ "${RUNNING_ARCH}" == "riscv64" ]]; then
|
if ! [[ "${RUNNING_ARCH}" == "riscv64" ]]; then
|
||||||
DIALOG --infobox "Refreshing package database ..." 3 50
|
DIALOG --infobox "Refreshing package database ..." 3 70
|
||||||
pacman -Sy > "${LOG}" 2>&1 || (DIALOG --msgbox "Pacman preparation failed! Check ${LOG} for errors." 6 60; return 1)
|
pacman -Sy > "${LOG}" 2>&1 || (DIALOG --msgbox "Pacman preparation failed! Check ${LOG} for errors." 6 60; return 1)
|
||||||
sleep 1
|
sleep 1
|
||||||
DIALOG --infobox "Checking on new online kernel version ..." 3 50
|
DIALOG --infobox "Checking on new online kernel version ..." 3 70
|
||||||
RUNNING_KERNEL="$(pacman -Qi ${KERNELPKG} | grep Version | cut -d ':' -f2 | sed -e 's# ##')"
|
RUNNING_KERNEL="$(pacman -Qi ${KERNELPKG} | grep Version | cut -d ':' -f2 | sed -e 's# ##')"
|
||||||
ONLINE_KERNEL="$(pacman -Si ${KERNELPKG} | grep Version | cut -d ':' -f2 | sed -e 's# ##')"
|
ONLINE_KERNEL="$(pacman -Si ${KERNELPKG} | grep Version | cut -d ':' -f2 | sed -e 's# ##')"
|
||||||
sleep 1
|
sleep 2
|
||||||
if ! [[ "${RUNNING_KERNEL}" == "${ONLINE_KERNEL}" ]]; then
|
if ! [[ "${RUNNING_KERNEL}" == "${ONLINE_KERNEL}" ]]; then
|
||||||
DIALOG --defaultno --yesno "New online kernel version ${ONLINE_KERNEL} available.\n\nDo you want to update the archboot environment to latest packages with caching packages for installation?\n\nATTENTION:\nThis will reboot the system using kexec!" 0 0 && UPDATE_ENVIRONMENT="1"
|
DIALOG --defaultno --yesno "New online kernel version ${ONLINE_KERNEL} available.\n\nDo you want to update the archboot environment to latest packages with caching packages for installation?\n\nATTENTION:\nThis will reboot the system using kexec!" 0 0 && UPDATE_ENVIRONMENT="1"
|
||||||
if [[ "${UPDATE_ENVIRONMENT}" == "1" ]]; then
|
if [[ "${UPDATE_ENVIRONMENT}" == "1" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue