On 2017-07-14, Florian Obser <[email protected]> wrote:
> --- etc/rc
> +++ etc/rc
> @@ -47,6 +47,14 @@ update_limit() {
> done
> }
>
> +# Apply soii.key settings.
> +soii_key() {
> + stripcom /etc/soii.key |
> + while read _line; do
> + sysctl -q "net.inet6.ip6.soiikey=$_line"
> + done
> +}
I think this should move into netstart.
Currently, I can boot a machine into single-user mode and run
netstart <if> to configure an interface. With the changes here, I
need to remember to manually load the soiikey first, otherwise I
end up with a different v6 address.
Also, since we agreed that it's just an opaque blob, we don't need to
treat it like a configuration file.
sysctl -q "net.inet6.ip6.soiikey=$(</etc/soii.key)"
--
Christian "naddy" Weisgerber [email protected]