Commit 0b672c24 authored by Bernhard Landauer's avatar Bernhard Landauer

use curl for connectivity test

parent e04f4498
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment