diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2018-02-10 05:56:48 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2018-02-10 05:56:48 +0000 |
commit | dc78b166bf4558328cfbe1dcab7c6cf45914c4c6 (patch) | |
tree | 25e85db51cb7c610049c51400302178b80e87027 /etc/netstart | |
parent | a845e4500bfee2f43e1ee3bc30a43a2cf0e6bd59 (diff) |
Load RFC 7217 key material and generate if it does not already exist.
Add soii.key to changelist (pointed out by semarie) and mtree/special
(suggest by Craig Skinner).
OK naddy, sthen, rpe, tb
Diffstat (limited to 'etc/netstart')
-rw-r--r-- | etc/netstart | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/netstart b/etc/netstart index 09c7dcb2579..820c1607deb 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.188 2018/02/06 19:53:50 tb Exp $ +# $OpenBSD: netstart,v 1.189 2018/02/10 05:56:47 florian Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -194,6 +194,9 @@ if $PRINT_ONLY && (($# == 0)); then exit 1 fi +$PRINT_ONLY || [[ ! -f /etc/soii.key ]] || + sysctl -q "net.inet6.ip6.soiikey=$(</etc/soii.key)" + # If we were invoked with a list of interface names, just reconfigure these # interfaces (or bridges), add default routes and return. if (($# > 0)); then |