From: kn Date: Mon, 31 Oct 2022 20:14:45 +0000 (+0000) Subject: Hoist only the feature check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1943041ab106badeaef1837548d458be7cdfd859;p=openbsd Hoist only the feature check Keep adding IPv6 routes after lo0 got an addres like before, meant to be committed together with r1.223. --- diff --git a/etc/netstart b/etc/netstart index 2bae217e988..afbeff5cd41 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.224 2022/10/31 19:48:50 kn Exp $ +# $OpenBSD: netstart,v 1.225 2022/10/31 20:14:45 kn Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -325,7 +325,6 @@ shift $((OPTIND-1)) if ifconfig lo0 inet6 >/dev/null 2>&1; then IP6KERNEL=true - ip6routes fi # Load key material for the generation of IPv6 Semantically Opaque Interface @@ -355,6 +354,10 @@ else ifconfig lo0 inet 127.0.0.1/8 fi +if $IP6KERNEL && ! $PRINT_ONLY; then + ip6routes +fi + # Create all the pseudo interfaces up front. vifscreate