On 02/26/2012 01:35 AM, Willie WY Wong wrote:

> Gee-Mi-Ni init.d # grep dhcpcd /etc/init.d/*
> /etc/init.d/dhcpcd:command=/sbin/dhcpcd
> /etc/init.d/dhcpcd:pidfile=/var/run/dhcpcd.pid
> /etc/init.d/wpa_supplicant:     before dns dhcpcd net
> 
> uh, apparently none of them? 

The net.lo script does include this test:

        # Ensure that loopback has the correct address
        if [ "${IFACE}" = "lo" -o "${IFACE}" = "lo0" ]; then
                if [ "$1" != "null" ]; then
                        config_0="127.0.0.1/8"
                        config_index=1
                fi
        else
                if [ -z "$1" ]; then
                        ewarn "No configuration specified; defaulting to DHCP"
                        config_0="dhcp"
                        config_index=1
                fi
        fi

The value of ${IFACE} is set (I think) by looking at the ".lo"
or ".eth0" file extension of net.lo or net.eth0 (or whatever
symlink you created when you installed gentoo).  If you don't
have a net.whatever symlink to net.lo, then openrc defaults to
dhcp.

Do you maybe not have a net.foo symlink, or an old obsolete one
in /etc/init.d ?


Reply via email to