ace748
From 3186abd76ef732f2aeec4f3901d0b6a17a701f3a Mon Sep 17 00:00:00 2001
ace748
From: Lukas Nykryn <lnykryn@redhat.com>
ace748
Date: Wed, 1 Mar 2017 14:43:53 +0100
ace748
Subject: [PATCH] write-ifcfg: do't write MTU twice for regular eth devices
ace748
ace748
If MTU is specified, we write it for every type of device in the
ace748
beginning. There is not point writing it again for Type=ethernet
ace748
devices.
ace748
---
ace748
 modules.d/45ifcfg/write-ifcfg.sh | 5 +----
ace748
 1 file changed, 1 insertion(+), 4 deletions(-)
ace748
ace748
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
1755ca
index a077da1c..fa395b3a 100755
ace748
--- a/modules.d/45ifcfg/write-ifcfg.sh
ace748
+++ b/modules.d/45ifcfg/write-ifcfg.sh
ace748
@@ -210,10 +210,7 @@ for netup in /tmp/net.*.did-setup ; do
ace748
     # bridge needs different things written to ifcfg
ace748
     if [ -z "$bridge" ] && [ -z "$bond" ] && [ -z "$vlan" ] && [ -z "$team" ]; then
ace748
         # standard interface
ace748
-        {
ace748
-            echo "TYPE=Ethernet"
ace748
-            [ -n "$mtu" ] && echo "MTU=\"$mtu\""
ace748
-        } >> /tmp/ifcfg/ifcfg-$netif
ace748
+        echo "TYPE=Ethernet" >> /tmp/ifcfg/ifcfg-$netif
ace748
     fi
ace748
 
ace748
     if [ -n "$vlan" ] ; then