On Mon, Mar 17, 2014 at 6:45 PM, Alan McKinnon <[email protected]> wrote: > On 17/03/2014 10:18, Mick wrote: >> On Monday 17 Mar 2014 03:21:38 eroen wrote: >>> On Sun, 16 Mar 2014 22:15:59 +0200, Alan McKinnon >>> >>> <[email protected]> wrote: >>>> You have various choices >>>> >>>> - an orthodox network manager like wicd or nm >>>> - a minimal network manager like connman >>>> - /etc/init.d/net* scripts supplied by OpenRc >>>> - no manager, do it manually >>> >>> Why doesn't anyone ever mention using dhcpcd for managing connections? >>> It and its accompanying openrc init script are installed on almost >>> every gentoo box anyway. For simple setups it should Just Work(TM) >>> out-of-box. >> >> I can't find an /etc/conf.d/dhcpcd file. Will it use the /etc/conf.d/net >> file >> settings, or just try to bring up all and any /etc/init.d/net.* symlinks and >> get an IP address from any listening dhcp server? >> > > > I haven't used dhcpcd for a some years now, so YMMV: > > It doesn't have an init script, it's started by OpenRc's net.* scripts. > If they are blank, OpenRc assumes a dhcp-managed interface and starts > the configured dhcp provider. dhcpcd is the default for this. > > So, if you create /etc/init.d/net.eth0[1] and add nothing to > /etc/conf.d/net, dhcpcd is most ikely what you are going to be running. > > [1] For the purposes of this thread, let's just assume that udev's > naming-shenanigans don't exist, we all know what we mean by "eth0" > > -- > Alan McKinnon > [email protected] > >
/etc/init.d/dhcpcd is created when you install the package. If dhcpcd is not present, I think OpenRC uses busybox's udhcpc (which is generally compiled with busybox and busybox is present on all Gentoo systems).

