use curl for connectivity test

merge-requests/273/head
Bernhard Landauer 7 years ago
parent e04f449866
commit 0b672c247a

@ -12,7 +12,7 @@
[[ -e /run/miso/bootmnt ]] && setfont ter-116n
while [[ ! $(ping -c 2 manjaro.org) ]]; do
while [[ ! -n "$(curl -Is https://manjaro.org | head -1)" ]]; do
if [[ $(cat /proc/1/comm) == "systemd" ]];then
if [[ $(systemctl is-active NetworkManager) == "active" ]]; then
dialog --backtitle ":: Manjaro Architect ::" --yesno "\nPlease connect to the internet:\n" 0 0 && \

@ -341,7 +341,7 @@ set_keymap() {
}
mk_connection() {
if [[ ! $(ping -c 2 google.com) ]]; then
if [[ ! -n "$(curl -Is https://manjaro.org | head -1)" ]]; then
DIALOG " $_NoCon " --yesno "\n$_EstCon\n " 0 0 && $NW_CMD && return 0 || clear && exit 0
fi
}

Loading…
Cancel
Save