1 |
On 02/26/2012 01:35 AM, Willie WY Wong wrote: |
2 |
|
3 |
> Gee-Mi-Ni init.d # grep dhcpcd /etc/init.d/* |
4 |
> /etc/init.d/dhcpcd:command=/sbin/dhcpcd |
5 |
> /etc/init.d/dhcpcd:pidfile=/var/run/dhcpcd.pid |
6 |
> /etc/init.d/wpa_supplicant: before dns dhcpcd net |
7 |
> |
8 |
> uh, apparently none of them? |
9 |
|
10 |
The net.lo script does include this test: |
11 |
|
12 |
# Ensure that loopback has the correct address |
13 |
if [ "${IFACE}" = "lo" -o "${IFACE}" = "lo0" ]; then |
14 |
if [ "$1" != "null" ]; then |
15 |
config_0="127.0.0.1/8" |
16 |
config_index=1 |
17 |
fi |
18 |
else |
19 |
if [ -z "$1" ]; then |
20 |
ewarn "No configuration specified; defaulting to DHCP" |
21 |
config_0="dhcp" |
22 |
config_index=1 |
23 |
fi |
24 |
fi |
25 |
|
26 |
The value of ${IFACE} is set (I think) by looking at the ".lo" |
27 |
or ".eth0" file extension of net.lo or net.eth0 (or whatever |
28 |
symlink you created when you installed gentoo). If you don't |
29 |
have a net.whatever symlink to net.lo, then openrc defaults to |
30 |
dhcp. |
31 |
|
32 |
Do you maybe not have a net.foo symlink, or an old obsolete one |
33 |
in /etc/init.d ? |