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