summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-05-28 16:56:40 +0200
committerHarald Hoyer <harald@redhat.com>2013-05-28 16:56:40 +0200
commit284d62da816a9d3678906e9dbeb796132016b9c9 (patch)
tree7da10082d62e416c88c1552e1c55c4c74a3fcb14
parentc6df70fb4859fba630433586d39d728e60613399 (diff)
downloaddracut-284d62da816a9d3678906e9dbeb796132016b9c9.tar.gz
dracut-284d62da816a9d3678906e9dbeb796132016b9c9.tar.bz2
dracut-284d62da816a9d3678906e9dbeb796132016b9c9.zip
ifcfg/write-ifcfg.sh: proper NAME the interfaces
https://bugzilla.redhat.com/show_bug.cgi?id=965842
-rwxr-xr-xmodules.d/45ifcfg/write-ifcfg.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
index 16da5e48..baa63fa4 100755
--- a/modules.d/45ifcfg/write-ifcfg.sh
+++ b/modules.d/45ifcfg/write-ifcfg.sh
@@ -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
{