reduce sleeps to 2

This commit is contained in:
Tobias Powalowski 2023-07-22 07:14:16 +02:00
parent 38d6b279e5
commit ef0151fb14
3 changed files with 8 additions and 9 deletions

View file

@ -46,15 +46,14 @@ _timezone () {
done done
_dialog --infobox "Setting Timezone to ${_ZONE}..." 3 50 _dialog --infobox "Setting Timezone to ${_ZONE}..." 3 50
timedatectl set-timezone "${_ZONE}" timedatectl set-timezone "${_ZONE}"
sleep 3 sleep 2
}
_timeset() { _timeset() {
_hwclock _hwclock
# check internet connection # check internet connection
if ping -c1 www.google.com &>/dev/null; then if ping -c1 www.google.com &>/dev/null; then
_dialog --infobox "Syncing clock with NTP pool..." 3 45 _dialog --infobox "Syncing clock with NTP pool..." 3 45
sleep 3 sleep 2
# sync immediatly with standard pool # sync immediatly with standard pool
if ! systemctl restart systemd-timesyncd; then if ! systemctl restart systemd-timesyncd; then
_dialog --msgbox "An error has occured, time was not changed!" 0 0 _dialog --msgbox "An error has occured, time was not changed!" 0 0
@ -87,6 +86,6 @@ while [[ -z "${_SET_TIME}" ]]; do
_timeset _timeset
done done
_dialog --infobox "Clock configuration completed successfully." 3 50 _dialog --infobox "Clock configuration completed successfully." 3 50
sleep 3 sleep 2
_cleanup _cleanup
# vim: set ts=4 sw=4 et: # vim: set ts=4 sw=4 et:

View file

@ -205,9 +205,9 @@ _network() {
return 1 return 1
fi fi
_dialog --infobox "Link is up. Network is ready." 3 50 _dialog --infobox "Link is up. Network is ready." 3 50
sleep 3 sleep 2
_dialog --infobox "Network configuration completed successfully." 3 50 _dialog --infobox "Network configuration completed successfully." 3 50
sleep 3 sleep 2
return 0 return 0
} }

View file

@ -106,7 +106,7 @@ _update_environment() {
sleep 2 sleep 2
if [[ "${_LOCAL_KERNEL}" == "${_ONLINE_KERNEL}" ]]; then if [[ "${_LOCAL_KERNEL}" == "${_ONLINE_KERNEL}" ]]; then
_dialog --infobox "No new kernel online available. Skipping update environment." 3 70 _dialog --infobox "No new kernel online available. Skipping update environment." 3 70
sleep 3 sleep 2
else else
_dialog --title " New Kernel Available " --defaultno --yesno "Do you want to update the Archboot Environment to ${_ONLINE_KERNEL}?\n\nATTENTION:\nThis will reboot the system using kexec!" 9 60 && _UPDATE_ENVIRONMENT=1 _dialog --title " New Kernel Available " --defaultno --yesno "Do you want to update the Archboot Environment to ${_ONLINE_KERNEL}?\n\nATTENTION:\nThis will reboot the system using kexec!" 9 60 && _UPDATE_ENVIRONMENT=1
if [[ -n "${_UPDATE_ENVIRONMENT}" ]]; then if [[ -n "${_UPDATE_ENVIRONMENT}" ]]; then
@ -139,7 +139,7 @@ LocalFileSigLevel = Optional
Server = file:///var/cache/pacman/pkg Server = file:///var/cache/pacman/pkg
EOF EOF
pacman -Sy >>"${_LOG}" pacman -Sy >>"${_LOG}"
sleep 3 sleep 2
break break
fi fi
_enable_testing _enable_testing
@ -155,6 +155,6 @@ if [[ ! -e "/var/cache/pacman/pkg/archboot.db" ]]; then
_update_environment _update_environment
fi fi
_dialog --infobox "Pacman configuration completed successfully." 3 60 _dialog --infobox "Pacman configuration completed successfully." 3 60
sleep 3 sleep 2
_cleanup _cleanup
# vim: set ft=sh ts=4 sw=4 et: # vim: set ft=sh ts=4 sw=4 et: