]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifcfg/write-ifcfg.sh: proper NAME the interfaces
authorHarald Hoyer <harald@redhat.com>
Tue, 28 May 2013 14:56:40 +0000 (16:56 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 28 May 2013 14:56:40 +0000 (16:56 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=965842

modules.d/45ifcfg/write-ifcfg.sh

index 16da5e485c872b533d427f8f513ff5918f901eb4..baa63fa4dbadae516a14e6752db0d32c2cf8c87d 100755 (executable)
@@ -152,7 +152,7 @@ for netif in $IFACES ; do
             fi
             print_s390 $netif
             echo "TYPE=Ethernet"
-            echo "NAME=\"Boot Disk\""
+            echo "NAME=\"$netif\""
             [ -n "$mtu" ] && echo "MTU=$mtu"
         } >> /tmp/ifcfg/ifcfg-$netif
     fi
@@ -162,7 +162,7 @@ for netif in $IFACES ; do
         {
             # This variable is an indicator of a bond interface for initscripts
             echo "BONDING_OPTS=\"$bondoptions\""
-            echo "NAME=\"Boot Disk\""
+            echo "NAME=\"$netif\""
         } >> /tmp/ifcfg/ifcfg-$netif
 
         for slave in $bondslaves ; do
@@ -186,7 +186,7 @@ for netif in $IFACES ; do
         # bridge
         {
             echo "TYPE=Bridge"
-            echo "NAME=\"Boot Disk\""
+            echo "NAME=\"$netif\""
         } >> /tmp/ifcfg/ifcfg-$netif
         if [ "$ethname" = "$bondname" ] ; then
             {