From f34b4a1eef16f08f34c512a66dc2b85d6ff7dfff Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 26 Nov 2022 13:10:15 +0100 Subject: [PATCH] log all ping output to LOG --- usr/lib/archboot/installer/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/network.sh b/usr/lib/archboot/installer/network.sh index 9ee405669..49c38fa05 100644 --- a/usr/lib/archboot/installer/network.sh +++ b/usr/lib/archboot/installer/network.sh @@ -143,7 +143,7 @@ donetwork() { # add sleep here dhcp can need some time to get link DIALOG --infobox "Waiting 30 seconds for network link to come up ..." 3 60 NETWORK_COUNT="0" - while ! ping -c1 www.google.com > "${LOG}"; do + while ! ping -c1 www.google.com > "${LOG}" 2>&1; do sleep 1 NETWORK_COUNT="$((NETWORK_COUNT+1))" [[ "${NETWORK_COUNT}" == "30" ]] && break