Blame SOURCES/0407-network-net-lib.sh-correctly-set-mac-address-for-ip-.patch

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