mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
speedup network setup
This commit is contained in:
parent
646e750a64
commit
2d3edeea68
1 changed files with 2 additions and 5 deletions
|
@ -201,9 +201,9 @@ _network() {
|
||||||
_COUNT=0
|
_COUNT=0
|
||||||
while true; do
|
while true; do
|
||||||
if getent hosts www.google.com &>"${_LOG}"; then
|
if getent hosts www.google.com &>"${_LOG}"; then
|
||||||
_dialog --infobox "Link is up. Network is ready." 3 50
|
_dialog --infobox "Network configuration completed successfully." 3 50
|
||||||
sleep 2
|
sleep 2
|
||||||
break
|
return 0
|
||||||
fi
|
fi
|
||||||
_COUNT=$((_COUNT+1))
|
_COUNT=$((_COUNT+1))
|
||||||
[[ "${_COUNT}" == 5 ]] && break
|
[[ "${_COUNT}" == 5 ]] && break
|
||||||
|
@ -214,9 +214,6 @@ _network() {
|
||||||
sleep 3
|
sleep 3
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_dialog --infobox "Network configuration completed successfully." 3 50
|
|
||||||
sleep 2
|
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_check
|
_check
|
||||||
|
|
Loading…
Reference in a new issue