Blame 0060-ifcfg-write-ifcfg.sh-proper-NAME-the-interfaces.patch

Harald Hoyer 75f812
From 284d62da816a9d3678906e9dbeb796132016b9c9 Mon Sep 17 00:00:00 2001
Harald Hoyer 75f812
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 75f812
Date: Tue, 28 May 2013 16:56:40 +0200
Harald Hoyer 75f812
Subject: [PATCH] ifcfg/write-ifcfg.sh: proper NAME the interfaces
Harald Hoyer 75f812
Harald Hoyer 75f812
https://bugzilla.redhat.com/show_bug.cgi?id=965842
Harald Hoyer 75f812
---
Harald Hoyer 75f812
 modules.d/45ifcfg/write-ifcfg.sh | 6 +++---
Harald Hoyer 75f812
 1 file changed, 3 insertions(+), 3 deletions(-)
Harald Hoyer 75f812
Harald Hoyer 75f812
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
Harald Hoyer 75f812
index 16da5e4..baa63fa 100755
Harald Hoyer 75f812
--- a/modules.d/45ifcfg/write-ifcfg.sh
Harald Hoyer 75f812
+++ b/modules.d/45ifcfg/write-ifcfg.sh
Harald Hoyer 75f812
@@ -152,7 +152,7 @@ for netif in $IFACES ; do
Harald Hoyer 75f812
             fi
Harald Hoyer 75f812
             print_s390 $netif
Harald Hoyer 75f812
             echo "TYPE=Ethernet"
Harald Hoyer 75f812
-            echo "NAME=\"Boot Disk\""
Harald Hoyer 75f812
+            echo "NAME=\"$netif\""
Harald Hoyer 75f812
             [ -n "$mtu" ] && echo "MTU=$mtu"
Harald Hoyer 75f812
         } >> /tmp/ifcfg/ifcfg-$netif
Harald Hoyer 75f812
     fi
Harald Hoyer 75f812
@@ -162,7 +162,7 @@ for netif in $IFACES ; do
Harald Hoyer 75f812
         {
Harald Hoyer 75f812
             # This variable is an indicator of a bond interface for initscripts
Harald Hoyer 75f812
             echo "BONDING_OPTS=\"$bondoptions\""
Harald Hoyer 75f812
-            echo "NAME=\"Boot Disk\""
Harald Hoyer 75f812
+            echo "NAME=\"$netif\""
Harald Hoyer 75f812
         } >> /tmp/ifcfg/ifcfg-$netif
Harald Hoyer 75f812
 
Harald Hoyer 75f812
         for slave in $bondslaves ; do
Harald Hoyer 75f812
@@ -186,7 +186,7 @@ for netif in $IFACES ; do
Harald Hoyer 75f812
         # bridge
Harald Hoyer 75f812
         {
Harald Hoyer 75f812
             echo "TYPE=Bridge"
Harald Hoyer 75f812
-            echo "NAME=\"Boot Disk\""
Harald Hoyer 75f812
+            echo "NAME=\"$netif\""
Harald Hoyer 75f812
         } >> /tmp/ifcfg/ifcfg-$netif
Harald Hoyer 75f812
         if [ "$ethname" = "$bondname" ] ; then
Harald Hoyer 75f812
             {