Hello,
currently, the LiveCD runs dhcpcd on eth0 and waits for its completion. Given
that there may be two network cards, or a network without a DHCP server, this
is bad. It would be better to run dhcpcd on all network cards, without
waiting for its completion.
Since all network drivers on the CD are modules, udev catches all network
hotplug events. Thus, running dhcpcd on all interfaces can be achieved (after
releasing -pre2) by abandoning the traditional ifconfig.eth0 approach and
running dhcpcd from udev rules similar to the following (can't test here):
ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="addr_len"
ACTION=="add", SUBSYSTEM=="net", SYSFS{addr_len}=="6", \
SYSFS{address}!="00:00:00:00:00:00", \
RUN+="/bin/sh -c 'ip link set %k up ; dhcpcd -t 20 %k & ; exit 0'"
Is this acceptable? Any corrections?
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page