From: Lukas Nykryn Date: Wed, 1 Mar 2017 13:43:53 +0000 (+0100) Subject: write-ifcfg: do't write MTU twice for regular eth devices X-Git-Tag: 045~28^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F204%2Fhead;p=thirdparty%2Fdracut.git write-ifcfg: do't write MTU twice for regular eth devices If MTU is specified, we write it for every type of device in the beginning. There is not point writing it again for Type=ethernet devices. --- diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh index 5b0c50dd0..811a84782 100755 --- a/modules.d/45ifcfg/write-ifcfg.sh +++ b/modules.d/45ifcfg/write-ifcfg.sh @@ -201,10 +201,7 @@ for netup in /tmp/net.*.did-setup ; do # bridge needs different things written to ifcfg if [ -z "$bridge" ] && [ -z "$bond" ] && [ -z "$vlan" ]; then # standard interface - { - echo "TYPE=Ethernet" - [ -n "$mtu" ] && echo "MTU=\"$mtu\"" - } >> /tmp/ifcfg/ifcfg-$netif + echo "TYPE=Ethernet" >> /tmp/ifcfg/ifcfg-$netif fi if [ -n "$vlan" ] ; then