diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2022-10-31 20:14:46 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2022-10-31 20:14:46 +0000 |
commit | 336fbb3f5193fd9399a6ec38dea8fbc4d7865624 (patch) | |
tree | f57b6935edb69c6ecf954947388b6d1e2409eb7e /etc | |
parent | 97644ca127ee2a58d01352ec7322c6b206924086 (diff) |
Hoist only the feature check
Keep adding IPv6 routes after lo0 got an addres like before, meant to be
committed together with r1.223.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/netstart | 7 |
1 files changed, 5 insertions, 2 deletions
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 |