diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-05 03:14:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-05 03:14:17 +0000 |
commit | 81e7cd9b45883ec5a4c971b33aefcf15a6d427bd (patch) | |
tree | f7e0a8142a11924708c6df1a071253c56d5f8cb1 /hpvd-Use-filename-for-connection-profile.patch | |
parent | 0fa696bda0f73911bdc7b68578708331301a4d5e (diff) |
automatic import of hyperv-daemonsopeneuler24.03_LTS
Diffstat (limited to 'hpvd-Use-filename-for-connection-profile.patch')
-rw-r--r-- | hpvd-Use-filename-for-connection-profile.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/hpvd-Use-filename-for-connection-profile.patch b/hpvd-Use-filename-for-connection-profile.patch new file mode 100644 index 0000000..5ed2917 --- /dev/null +++ b/hpvd-Use-filename-for-connection-profile.patch @@ -0,0 +1,31 @@ +From 3d234bcdb4d40b42923688514a2fb5d1cb8b3314 Mon Sep 17 00:00:00 2001 +From: Till Maas <timaas@redhat.com> +Date: Tue, 14 Dec 2021 08:07:40 +0000 +Subject: [PATCH 2/2] Use filename for connection profile + +RH-Author: Till Maas <None> +RH-MergeRequest: 2: hv_set_ifconfig.sh: Use nmcli commands +RH-Commit: [2/2] 6b6f37ba159b0614b75fcfc02f0513af116711c2 (timaas/hyperv-daemons) +RH-Bugzilla: 2026371 +RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com> +RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com> +--- + hv_set_ifconfig.sh | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/hv_set_ifconfig.sh b/hv_set_ifconfig.sh +index 5a64efe..146829b 100644 +--- a/hv_set_ifconfig.sh ++++ b/hv_set_ifconfig.sh +@@ -57,5 +57,6 @@ echo "ONBOOT=yes" >> $1 + + cp $1 /etc/sysconfig/network-scripts/ + +-nmcli connection load "/etc/sysconfig/network-scripts/$1" +-nmcli connection up filename "/etc/sysconfig/network-scripts/$1" ++filename="${1##*/}" ++nmcli connection load "/etc/sysconfig/network-scripts/${filename}" ++nmcli connection up filename "/etc/sysconfig/network-scripts/${filename}" +-- +2.27.0 + |