From c27d8832ebf01571573fa7508c31e30c489e1d5c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 10 Sep 2019 11:36:39 +0200 Subject: [rootfs-stage31] Add more brain damage to setup_network_retry ... in a desperate attempt to get stubborn NICs to work ... --- core/rootfs/rootfs-stage31/data/inc/setup_network_retry | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rootfs/rootfs-stage31/data/inc/setup_network_retry b/core/rootfs/rootfs-stage31/data/inc/setup_network_retry index 98701e91..76923703 100644 --- a/core/rootfs/rootfs-stage31/data/inc/setup_network_retry +++ b/core/rootfs/rootfs-stage31/data/inc/setup_network_retry @@ -17,13 +17,13 @@ for i in 1 2 3 4 5 6 7 8; do wait_for_iface "$IFACE" "$(( 15 + i * 2 ))" retval=$? ip link set dev "$BRIDGE" up - if [ "$retval" -eq 0 ] && [ "$i" -gt 4 ] && [ -n "$CLIENTIP" ] && [ -n "$GATEWAY" ]; then + if [ "$retval" -eq 0 ] && [ "$i" -ge 4 ] && [ -n "$CLIENTIP" ] && [ -n "$GATEWAY" ]; then echo "....." usleep 100000 echo "Checking if static IP config works...." if ping -c1 -w2 "$GATEWAY" &> /dev/null || ping -c1 -w2 "$SERVERIP" &> /dev/null; then echo "apparently so." - echo "Trying to boot without DHCP config, YMMV!" + echo "Trying to boot without DHCP config (DNS, Hostname, ...), YMMV!" sleep 3 RET=0 break -- cgit v1.2.3-55-g7522