Blame 0019-network-net-lib.sh-correctly-set-mac-address-for-ip-.patch

Harald Hoyer b38677
From efbc47b8e43ad173d3319f3f6e87b0a60aad9f37 Mon Sep 17 00:00:00 2001
Harald Hoyer b38677
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer b38677
Date: Wed, 13 Jan 2016 13:43:38 +0100
Harald Hoyer b38677
Subject: [PATCH] network/net-lib.sh: correctly set mac address for
Harald Hoyer b38677
 ip=...:<mtu>:<mac>
Harald Hoyer b38677
Harald Hoyer b38677
if ip=...:<mtu>:<mac> was specified, macadress was not set
Harald Hoyer b38677
---
Harald Hoyer b38677
 modules.d/40network/net-lib.sh | 3 +++
Harald Hoyer b38677
 1 file changed, 3 insertions(+)
Harald Hoyer b38677
Harald Hoyer b38677
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
Harald Hoyer b38677
index 256826e..31f1a56 100755
Harald Hoyer b38677
--- a/modules.d/40network/net-lib.sh
Harald Hoyer b38677
+++ b/modules.d/40network/net-lib.sh
Harald Hoyer b38677
@@ -427,6 +427,9 @@ ip_to_var() {
Harald Hoyer b38677
                     ;;
Harald Hoyer b38677
                 [0-9]*)
Harald Hoyer b38677
                     mtu="$8"
Harald Hoyer b38677
+                    if [ -n "${9}" -a -n "${10}" -a -n "${11}" -a -n "${12}" -a -n "${13}" -a -n "${14}" ]; then
Harald Hoyer b38677
+                        macaddr="${9}:${10}:${11}:${12}:${13}:${14}"
Harald Hoyer b38677
+                    fi
Harald Hoyer b38677
                     ;;
Harald Hoyer b38677
                 *)
Harald Hoyer b38677
                     if [ -n "${9}" -a -n "${10}" -a -n "${11}" -a -n "${12}" -a -n "${13}" -a -n "${14}" ]; then