]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Do not run dhclient if the interface is already up.
authorVictor Lowther <victor.lowther-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Thu, 26 Feb 2009 02:42:14 +0000 (18:42 -0800)
committerHarald Hoyer <harald@redhat.com>
Wed, 4 Mar 2009 15:55:10 +0000 (16:55 +0100)
hooks/run-dhclient.sh

index fcf890ef8512877ef16e0bf5b7ff2209a0661f21..afab037006e21422ec16192267bf88e6f0c4e9ca 100755 (executable)
@@ -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