From: Harald Hoyer Date: Tue, 4 Feb 2014 11:02:34 +0000 (+0100) Subject: network/ifup: do not run dhclient twice on the same interface X-Git-Tag: 037~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c84618d7ac5cf87c6efaaca00e52f69dcff954e1;p=thirdparty%2Fdracut.git network/ifup: do not run dhclient twice on the same interface --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 3a03d0524..33ec81d1e 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -91,6 +91,9 @@ do_dhcp() { # dhclient-script will mark the netif up and generate the online # event for nfsroot # XXX add -V vendor class and option parsing per kernel + + [ -e /tmp/dhclient.$netif.pid ] && return 0 + if ! iface_has_link $netif; then echo "No carrier detected" return 1