712866
From 054447fa23017df5a1774ce30082cb383be97cfa Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 4 Feb 2014 12:02:34 +0100
712866
Subject: [PATCH] network/ifup: do not run dhclient twice on the same interface
712866
712866
---
712866
 modules.d/40network/ifup.sh | 3 +++
712866
 1 file changed, 3 insertions(+)
712866
712866
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
5c6c2a
index 3a03d052..33ec81d1 100755
712866
--- a/modules.d/40network/ifup.sh
712866
+++ b/modules.d/40network/ifup.sh
712866
@@ -91,6 +91,9 @@ do_dhcp() {
712866
     # dhclient-script will mark the netif up and generate the online
712866
     # event for nfsroot
712866
     # XXX add -V vendor class and option parsing per kernel
712866
+
712866
+    [ -e /tmp/dhclient.$netif.pid ] && return 0
712866
+
712866
     if ! iface_has_link $netif; then
712866
         echo "No carrier detected"
712866
         return 1