Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1150 - net.eth0 doesn't shut down dhcpcd properly
Summary: net.eth0 doesn't shut down dhcpcd properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-14 13:48 UTC by Paul Fleischer
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!