On Sat, Oct 29, 2022 at 09:49:56PM +0000, Klemens Nanni wrote:
> Physical interfaces may at/detach at runtime but ifconfig(8) cannot
> create them like virtual ones, yet netstart(8) always tries to do so:
>
> # sh /etc/netstart -n em0
> { ifconfig em0 || ifconfig em0 create; }
> ifconfig em0 up
>
> vifscreate() is used to create all virtual interfaces up-front and is
> always called at the beginning of netstart, whether an explicit list of
> interfaces is passed or none, i.e. all are to be configured.
>
> This means we can drop the explicit ifcreate() in ifstart() which
> always fails to create physical interfaces and always tries to create
> virtual interfaces which were already created.
>
> # sh ./netstart -n em0
> ifconfig em0 up
Wrong diff, too much juggling here, please wait for the next one.