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

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