;;
esac
+# [Proxmox]: Manually copy over DEBHELPER to avoid purging networking.service
+# on removal/purge to improve UX on switch to ifupdown2.
+#
+# TODO: Check for required updates once a upstream update gets pulled in
+
# Automatically added by dh_installinit/13.5.2~bpo11+1
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then
update-rc.d networking remove >/dev/null
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
-# Automatically added by dh_installsystemd/13.5.2~bpo11+1
-if [ "$1" = "remove" ]; then
- if [ -x "/usr/bin/deb-systemd-helper" ]; then
- deb-systemd-helper mask 'networking.service' >/dev/null || true
- fi
-fi
-
-if [ "$1" = "purge" ]; then
- if [ -x "/usr/bin/deb-systemd-helper" ]; then
- deb-systemd-helper purge 'networking.service' >/dev/null || true
- deb-systemd-helper unmask 'networking.service' >/dev/null || true
- fi
-fi
-# End automatically added section