summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2022-06-26 09:36:14 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2022-06-26 09:36:14 +0000
commit3e89cfa65b4c30472b25edabd83cb2c5dbe20fcb (patch)
tree642bc42c89be7d542964607d762447692d5e7d76 /etc/rc
parent9a7232a37d96f5fe2b4274e1b596ea85eeceb900 (diff)
Wait for autoconf interfaces to come up in netstart(8) instead of
rc(8). This makes tunnel interfaces work that depend on working autoconf interfaces. OK deraadt
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc11
1 files changed, 1 insertions, 10 deletions
diff --git a/etc/rc b/etc/rc
index a0325c74508..ac57a67676c 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.557 2022/06/26 08:08:23 florian Exp $
+# $OpenBSD: rc,v 1.558 2022/06/26 09:36:13 florian 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
@@ -462,15 +462,6 @@ random_seed
reorder_libs
-# If interface autoconf exists, pause a little for at least one default route
-if ifconfig | grep -q ': flags=.*<.*AUTOCONF.*>'; then
- count=0
- while ((count++ < 20)); do
- route -n show | grep -q ^default && break
- sleep .5
- done
-fi
-
# Load pf rules and bring up pfsync interface.
if [[ $pf != NO ]]; then
if [[ -f /etc/pf.conf ]]; then