Blame SOURCES/hpvd-Use-filename-for-connection-profile.patch

80f447
From c04d9b584862ee913720632d7fdf83b79525a7d3 Mon Sep 17 00:00:00 2001
80f447
From: Till Maas <timaas@redhat.com>
80f447
Date: Tue, 14 Dec 2021 08:07:40 +0000
80f447
Subject: [PATCH 2/2] Use filename for connection profile
80f447
80f447
RH-Author: Mohamed Gamal Morsy <mmorsy@redhat.com>
80f447
RH-MergeRequest: 2: hv_set_ifconfig.sh: Use nmcli commands
80f447
RH-Commit: [2/2] 1b69f98b9c30ee6904475b78f2b93fabe2131074
80f447
RH-Bugzilla: 2056566
80f447
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
80f447
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
80f447
80f447
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2056566
80f447
80f447
Signed-off-by: Till Maas <tmaas@redhat.com>
80f447
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
80f447
---
80f447
 hv_set_ifconfig.sh | 5 +++--
80f447
 1 file changed, 3 insertions(+), 2 deletions(-)
80f447
80f447
diff --git a/hv_set_ifconfig.sh b/hv_set_ifconfig.sh
80f447
index 5a64efe..146829b 100644
80f447
--- a/hv_set_ifconfig.sh
80f447
+++ b/hv_set_ifconfig.sh
80f447
@@ -57,5 +57,6 @@ echo "ONBOOT=yes" >> $1
80f447
 
80f447
 cp $1 /etc/sysconfig/network-scripts/
80f447
 
80f447
-nmcli connection load "/etc/sysconfig/network-scripts/$1"
80f447
-nmcli connection up filename "/etc/sysconfig/network-scripts/$1"
80f447
+filename="${1##*/}"
80f447
+nmcli connection load "/etc/sysconfig/network-scripts/${filename}"
80f447
+nmcli connection up filename "/etc/sysconfig/network-scripts/${filename}"
80f447
-- 
80f447
2.27.0
80f447