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

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