From: kn Date: Sun, 18 Dec 2022 15:52:52 +0000 (+0000) Subject: Revert previous as it doesn't create additional lo(4) anymore X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8f27d2fe264b9d0f6ec21b7ebd8564739ba7b59c;p=openbsd Revert previous as it doesn't create additional lo(4) anymore Reported by Andreas Bartelt on bugs@ --- diff --git a/etc/netstart b/etc/netstart index 71f8885b8e2..af4866f909e 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.233 2022/12/18 05:51:14 kn Exp $ +# $OpenBSD: netstart,v 1.234 2022/12/18 15:52:52 kn Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -173,8 +173,8 @@ ifstart() { chown -LR root:wheel $_hn fi - # Skip missing physical interface, virtual ones were created up front. - ifconfig $_if >/dev/null 2>&1 || return + # Check for ifconfig'able interface, except if -n option is specified. + ifcreate $_if || return # Parse the hostname.if(5) file and fill _cmds array with interface # configuration commands.