Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2018 10:19:44 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        Masachika ISHIZUKA <ish@amail.plala.or.jp>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: How can I wait for a USB Ethernet adapter to appear to configure lagg on startup?
Message-ID:  <CAOjFWZ4txjWA-en0Rux_6J0mJUUoPA2y8vQgKZoxekpwtSW38A@mail.gmail.com>
In-Reply-To: <20180518.113009.439302765921485452.ish@amail.plala.or.jp>
References:  <20180518.113009.439302765921485452.ish@amail.plala.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 17, 2018 at 7:30 PM, Masachika ISHIZUKA <ish@amail.plala.or.jp>
wrote:

> Hi.
>
> I use a nootbook machine.
> As this machine has no internal nic, I use a USB ethernet adapter(ue0).
> I want to configure lagg0 of ue0 and iwm0, but I must wait to start
> /etc/rc.d/netif until appearing the ue0.
> I'm using patched netif as follows, but I must keep it whenever
> 'mergemaster -Ui' is run.
> Is there a more elegant way?
>

=E2=80=8BYour situation is pretty much the entire reason for the existence =
of
=E2=80=8B/etc/rc.d/netwait  Read through the comments in that script for mo=
re
information.  And the comments in /etc/defaults/rc.conf for netwait.

Something along these lines in /etc/rc.conf is what you want (along with
your normal ifconfig_* and wpa_* entries):

netwait_if=3D"ue0 iwm0"

That will cause the boot process to pause and wait for those two interfaces
to appear before continuing on with the network configuration.

There are various other netwait_* configuration entries that can used as
well.

--=20
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ4txjWA-en0Rux_6J0mJUUoPA2y8vQgKZoxekpwtSW38A>