|
|
@ -1,4 +1,4 @@ |
|
|
|
# $OpenBSD: rc,v 1.523 2017/11/09 11:02:10 tb Exp $ |
|
|
|
# $OpenBSD: rc,v 1.524 2018/02/10 05:56:47 florian Exp $ |
|
|
|
|
|
|
|
# System startup script run by init on autoboot or after single-user. |
|
|
|
# Output and error are redirected to console by init, and the console is the |
|
|
@ -158,6 +158,12 @@ make_keys() { |
|
|
|
fi |
|
|
|
|
|
|
|
ssh-keygen -A |
|
|
|
|
|
|
|
if [[ ! -f /etc/soii.key ]]; then |
|
|
|
openssl rand -hex 16 > /etc/soii.key && \ |
|
|
|
chmod 600 /etc/soii.key && sysctl -q \ |
|
|
|
"net.inet6.ip6.soiikey=$(</etc/soii.key)" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
# Re-link libraries, placing the objects in a random order. |
|
|
|