From 6b3ada3e1eefd4e067abd0cf9ffdfceef7425a6b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 5 Oct 2022 22:14:36 +0200 Subject: [PATCH] d/postinst: replace #DEBHELPER# template with generated version For having a better git history of what actually change, in preparation of dropping the networking.service masking. Signed-off-by: Thomas Lamprecht --- src/debian/postrm | 61 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/src/debian/postrm b/src/debian/postrm index 5c83895..24dc249 100644 --- a/src/debian/postrm +++ b/src/debian/postrm @@ -15,5 +15,64 @@ case "$1" in ;; esac -#DEBHELPER# +# Automatically added by dh_installinit/13.5.2~bpo11+1 +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then + update-rc.d networking remove >/dev/null +fi +# End automatically added section +# Automatically added by dh_installdeb/13.5.2~bpo11+1 +dpkg-maintscript-helper rm_conffile /etc/default/ifupdown 0.7\~\+ ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init.d/ifupdown 0.7\~\+ ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init.d/ifupdown-clean 0.7\~beta1 ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init/networking.conf 0.8.25\~ ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init/network-interface-container.conf 0.8.25\~ ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init/network-interface-security.conf 0.8.25\~ ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init/network-interface.conf 0.8.25\~ ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/network/if-up.d/upstart 0.8.29\~ ifupdown -- "$@" +dpkg-maintscript-helper rm_conffile /etc/network/if-down.d/upstart 0.8.29\~ ifupdown -- "$@" +# End automatically added section +# Automatically added by dh_installsystemd/13.5.2~bpo11+1 +if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then + 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 'ifupdown-wait-online.service' >/dev/null || true + fi +fi + +if [ "$1" = "purge" ]; then + if [ -x "/usr/bin/deb-systemd-helper" ]; then + deb-systemd-helper purge 'ifupdown-wait-online.service' >/dev/null || true + deb-systemd-helper unmask 'ifupdown-wait-online.service' >/dev/null || true + fi +fi +# End automatically added section +# Automatically added by dh_installsystemd/13.5.2~bpo11+1 +if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then + 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 ] && [ -d /run/systemd/system ] ; then + 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 + -- 2.39.2