There is no point in waiting when only printing would-be commands.

OK?

I'll promptly update this diff or the "netstart: improve shell style"
one in case either lands since they both touch the same line.

Index: netstart
===================================================================
RCS file: /cvs/src/etc/netstart,v
retrieving revision 1.222
diff -u -p -r1.222 netstart
--- netstart    24 Oct 2022 20:51:07 -0000      1.222
+++ netstart    26 Oct 2022 17:26:02 -0000
@@ -396,7 +396,7 @@ $PRINT_ONLY || wait_autoconf_default
 # Configure interfaces that rely on routing
 ifmstart "tun tap gif etherip gre egre nvgre eoip vxlan pflow wg"
 
-if [[ $ip6kernel == YES ]]; then
+if [[ $ip6kernel == YES ]] && ! $PRINT_ONLY; then
        # Ensure IPv6 Duplicate Address Detection (DAD) is completed.
        count=0
        while ((count++ < 10 && $(sysctl -n net.inet6.ip6.dad_pending) != 0)); 
do

Reply via email to