From: deraadt Date: Wed, 28 Jul 2021 20:48:36 +0000 (+0000) Subject: A slightly less precise match on the ifconfig output lines works X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1106a14563fcca6aceeaa7ea13b4859811fea2da;p=openbsd A slightly less precise match on the ifconfig output lines works better for rdomain or metric tuned interfaces from leon fischer --- diff --git a/etc/rc b/etc/rc index 448cd7619aa..744cf6f8d0a 100644 --- a/etc/rc +++ b/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.552 2021/07/22 18:29:47 deraadt Exp $ +# $OpenBSD: rc,v 1.553 2021/07/28 20:48:36 deraadt Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -461,7 +461,7 @@ random_seed reorder_libs # If interface autoconf exists, pause a little for at least one default route -if ifconfig | grep -q ': flags=.*<.*AUTOCONF.*> mtu'; then +if ifconfig | grep -q ': flags=.*<.*AUTOCONF.*>'; then count=0 while ((count++ < 20)); do route -n show | grep -q ^default && break