From: Victor Lowther Date: Thu, 26 Feb 2009 02:42:14 +0000 (-0800) Subject: Do not run dhclient if the interface is already up. X-Git-Tag: 0.1~409 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58a797d5f93078b38d0cad739907ad538c5b41b0;p=thirdparty%2Fdracut.git Do not run dhclient if the interface is already up. --- diff --git a/hooks/run-dhclient.sh b/hooks/run-dhclient.sh index fcf890ef8..afab03700 100755 --- a/hooks/run-dhclient.sh +++ b/hooks/run-dhclient.sh @@ -1,6 +1,7 @@ #!/bin/sh for i in /net.*.dhcp; do dev=${i#net.}; dev=${i%.dhcp} + [ -f "/net.$dev.up" ] && continue dhclient -1 -q $dev & done wait