mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
only check network in online mode
This commit is contained in:
parent
4409bde7d0
commit
b8b7d26841
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue