When a network interface controlled by dhcp is shutdown, the dhcp lease is not being released and dhcpcd is not being killed. This causes problems with pcmcia and hotplug interfaces as they are not completely shutdown on eject.
Can't seem to attach the file with the updated /etc/init.d/net.eth0. Here is the pertinent section: /sbin/ifconfig ${IFACE} down &>/dev/null if [ "$(eval echo \$\{iface_${IFACE}\})" == "dhcp" ] then /sbin/dhcpcd -k ${IFACE} &>/dev/null fi eend 0 It goes after the alias shutdown code in the stop() section.
It looks like this fix is (sorta) already on our internal CVS. The only difference is that our version doesn't using ifconfig to bring the interface down if it's dhcp (the first line in your script snippet is not executed). Is this correct or does the ifconfig line need to execute either way?
ifconfig down does need to be execute in both cases. If you don't do it before the dhcpcd -k, the dhcpcd -k fails..
Fixed in baselayout-1.7.5. Thanks! :)