diff options
-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 |