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

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