only check network in online mode

This commit is contained in:
Tobias Powalowski 2023-07-20 08:58:10 +02:00
parent 4409bde7d0
commit b8b7d26841

View file

@ -115,10 +115,12 @@ _update_environment() {
}
_check
if ! ping -c1 www.google.com &>/dev/null; then
_dialog --title " ERROR " --infobox "Your network is not working. Please reconfigure it." 3 60
sleep 5
_abort
if [[ ! -e "/var/cache/pacman/pkg/archboot.db" ]]; then
if ! ping -c1 www.google.com &>/dev/null; then
_dialog --title " ERROR " --infobox "Your network is not working. Please reconfigure it." 3 60
sleep 5
_abort
fi
fi
while true; do
if [[ -e "/var/cache/pacman/pkg/archboot.db" ]]; then