diff --git a/bin/setup-policy-routes.sh b/bin/setup-policy-routes.sh index a79fd09..fbcce80 100755 --- a/bin/setup-policy-routes.sh +++ b/bin/setup-policy-routes.sh @@ -48,9 +48,13 @@ refresh) ;; start) register_networkd_reloader + counter=0 while [ ! -e "/sys/class/net/${iface}" ]; do - debug "Waiting for sysfs node to exist" + if ((counter % 1000 == 0)); then + debug "Waiting for sysfs node to exist for ${iface} (iteration $counter)" + fi sleep 0.1 + ((counter++)) done info "Starting configuration for $iface" debug /lib/systemd/systemd-networkd-wait-online -i "$iface"