Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1150

Summary: net.eth0 doesn't shut down dhcpcd properly
Product: Gentoo Linux Reporter: Paul Fleischer <proguy>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paul Fleischer 2002-03-14 13:48:14 UTC
When using dhcp, '/etc/init.d/net.eth0 stop' does not kill dhcpcd, and
'/etc/init.d/net.eth0 start' does not work until dhcpcd is killed properly.
The fix is however quite trivial, in the stop() function.

/sbin/ifconfig ${IFACE} down &>/dev/null

should be replaced with:

        if [ "$(eval echo \$\{iface_${IFACE}\})" != "dhcp" ]
        then
                /sbin/ifconfig ${IFACE} down &>/dev/null
        else
                /sbin/dhcpcd -k ${IFACE} &>/dev/null
        fi

This corrects the problem, at least for me, and it seems like the real solution
to me, but who knows ;)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-03-14 15:43:04 UTC
Fixed on CVS, thanks!