Re: netstart: do not wait for autoconf in dry-run

2022-10-24 Thread Theo Buehler
On Mon, Oct 24, 2022 at 08:29:22PM +, Klemens Nanni wrote:
> If there is no default route but some interface has AUTOCONF, printing
> what would be done still waits for... nothing to happen.

ok tb



netstart: do not wait for autoconf in dry-run

2022-10-24 Thread Klemens Nanni
If there is no default route but some interface has AUTOCONF, printing
what would be done still waits for... nothing to happen.

OK?

Index: netstart
===
RCS file: /cvs/src/etc/netstart,v
retrieving revision 1.220
diff -u -p -r1.220 netstart
--- netstart21 Oct 2022 12:04:51 -  1.220
+++ netstart24 Oct 2022 20:25:06 -
@@ -391,7 +396,7 @@ else
 fi
 
 # If interface autoconf exists, pause a little for at least one default route
-wait_autoconf_default
+$PRINT_ONLY || wait_autoconf_default
 
 # Configure interfaces that rely on routing
 ifmstart "tun tap gif etherip gre egre nvgre eoip vxlan pflow wg"