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

f9ffd5
From 3d234bcdb4d40b42923688514a2fb5d1cb8b3314 Mon Sep 17 00:00:00 2001
f9ffd5
From: Till Maas <timaas@redhat.com>
f9ffd5
Date: Tue, 14 Dec 2021 08:07:40 +0000
f9ffd5
Subject: [PATCH 2/2] Use filename for connection profile
f9ffd5
f9ffd5
RH-Author: Till Maas <None>
f9ffd5
RH-MergeRequest: 2: hv_set_ifconfig.sh: Use nmcli commands
f9ffd5
RH-Commit: [2/2] 6b6f37ba159b0614b75fcfc02f0513af116711c2 (timaas/hyperv-daemons)
f9ffd5
RH-Bugzilla: 2026371
f9ffd5
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
f9ffd5
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
f9ffd5
---
f9ffd5
 hv_set_ifconfig.sh | 5 +++--
f9ffd5
 1 file changed, 3 insertions(+), 2 deletions(-)
f9ffd5
f9ffd5
diff --git a/hv_set_ifconfig.sh b/hv_set_ifconfig.sh
f9ffd5
index 5a64efe..146829b 100644
f9ffd5
--- a/hv_set_ifconfig.sh
f9ffd5
+++ b/hv_set_ifconfig.sh
f9ffd5
@@ -57,5 +57,6 @@ echo "ONBOOT=yes" >> $1
f9ffd5
 
f9ffd5
 cp $1 /etc/sysconfig/network-scripts/
f9ffd5
 
f9ffd5
-nmcli connection load "/etc/sysconfig/network-scripts/$1"
f9ffd5
-nmcli connection up filename "/etc/sysconfig/network-scripts/$1"
f9ffd5
+filename="${1##*/}"
f9ffd5
+nmcli connection load "/etc/sysconfig/network-scripts/${filename}"
f9ffd5
+nmcli connection up filename "/etc/sysconfig/network-scripts/${filename}"
f9ffd5
-- 
f9ffd5
2.27.0
f9ffd5