mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
reduce sleeps to 2
This commit is contained in:
parent
38d6b279e5
commit
ef0151fb14
3 changed files with 8 additions and 9 deletions
|
@ -46,15 +46,14 @@ _timezone () {
|
|||
done
|
||||
_dialog --infobox "Setting Timezone to ${_ZONE}..." 3 50
|
||||
timedatectl set-timezone "${_ZONE}"
|
||||
sleep 3
|
||||
}
|
||||
sleep 2
|
||||
|
||||
_timeset() {
|
||||
_hwclock
|
||||
# check internet connection
|
||||
if ping -c1 www.google.com &>/dev/null; then
|
||||
_dialog --infobox "Syncing clock with NTP pool..." 3 45
|
||||
sleep 3
|
||||
sleep 2
|
||||
# sync immediatly with standard pool
|
||||
if ! systemctl restart systemd-timesyncd; then
|
||||
_dialog --msgbox "An error has occured, time was not changed!" 0 0
|
||||
|
@ -87,6 +86,6 @@ while [[ -z "${_SET_TIME}" ]]; do
|
|||
_timeset
|
||||
done
|
||||
_dialog --infobox "Clock configuration completed successfully." 3 50
|
||||
sleep 3
|
||||
sleep 2
|
||||
_cleanup
|
||||
# vim: set ts=4 sw=4 et:
|
||||
|
|
|
@ -205,9 +205,9 @@ _network() {
|
|||
return 1
|
||||
fi
|
||||
_dialog --infobox "Link is up. Network is ready." 3 50
|
||||
sleep 3
|
||||
sleep 2
|
||||
_dialog --infobox "Network configuration completed successfully." 3 50
|
||||
sleep 3
|
||||
sleep 2
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ _update_environment() {
|
|||
sleep 2
|
||||
if [[ "${_LOCAL_KERNEL}" == "${_ONLINE_KERNEL}" ]]; then
|
||||
_dialog --infobox "No new kernel online available. Skipping update environment." 3 70
|
||||
sleep 3
|
||||
sleep 2
|
||||
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
|
||||
if [[ -n "${_UPDATE_ENVIRONMENT}" ]]; then
|
||||
|
@ -139,7 +139,7 @@ LocalFileSigLevel = Optional
|
|||
Server = file:///var/cache/pacman/pkg
|
||||
EOF
|
||||
pacman -Sy >>"${_LOG}"
|
||||
sleep 3
|
||||
sleep 2
|
||||
break
|
||||
fi
|
||||
_enable_testing
|
||||
|
@ -155,6 +155,6 @@ if [[ ! -e "/var/cache/pacman/pkg/archboot.db" ]]; then
|
|||
_update_environment
|
||||
fi
|
||||
_dialog --infobox "Pacman configuration completed successfully." 3 60
|
||||
sleep 3
|
||||
sleep 2
|
||||
_cleanup
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
|
|
Loading…
Reference in a new issue