]> git.proxmox.com Git - ifupdown2.git/blob - debian/patches/pve/0012-postinst-reload-network-config-on-first-install.patch
patch: reorder patches
[ifupdown2.git] / debian / patches / pve / 0012-postinst-reload-network-config-on-first-install.patch
1 From 9f8dfcaf862738b7439d5b0cb0d76dc24c3b50bc Mon Sep 17 00:00:00 2001
2 From: Dominik Csapak <d.csapak@proxmox.com>
3 Date: Tue, 6 Jul 2021 13:11:24 +0200
4 Subject: [PATCH 12/12] postinst: reload network config on first install
5
6 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 ---
9 debian/ifupdown2.postinst | 4 +++-
10 1 file changed, 3 insertions(+), 1 deletion(-)
11
12 diff --git a/debian/ifupdown2.postinst b/debian/ifupdown2.postinst
13 index b7de485..0137ea8 100644
14 --- a/debian/ifupdown2.postinst
15 +++ b/debian/ifupdown2.postinst
16 @@ -111,8 +111,10 @@ case "$1" in
17 process_udev
18 chmod +x /usr/share/ifupdown2/__main__.py
19 postinst_remove_diverts
20 - if [ -f "/tmp/.ifupdown2-first-install" ]; then
21 + if [ -f "/tmp/.ifupdown2-first-install" ] && [ ! -e /proxmox_install_mode ]; then
22 proxmox_compatibility
23 + echo "Reloading network config on first install"
24 + ifreload -a
25 rm /tmp/.ifupdown2-first-install
26 fi
27 ;;
28 --
29 2.30.2
30