summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sane-utils.postrm')
-rw-r--r--debian/sane-utils.postrm13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/sane-utils.postrm b/debian/sane-utils.postrm
index 5ebdada..a11d248 100644
--- a/debian/sane-utils.postrm
+++ b/debian/sane-utils.postrm
@@ -7,6 +7,19 @@ if [ "$1" = purge ]; then
update-inetd --remove sane-port
update-inetd --remove "#<off># sane-port"
fi
+#
+# purge systemd files
+#
+ rm -f /etc/systemd/system/saned.socket
+ rm -f /var/lib/systemd/deb-systemd-helper-enabled/saned.socket.dsh-also
+ rm -f /var/lib/systemd/deb-systemd-helper-masked/saned.socket
+ if [ -d /var/lib/systemd/deb-systemd-helper-enabled ]; then
+ rmdir --ignore-fail-on-non-empty /var/lib/systemd/deb-systemd-helper-enabled
+ fi
+ if [ -d /var/lib/systemd/deb-systemd-helper-masked ]; then
+ rmdir --ignore-fail-on-non-empty /var/lib/systemd/deb-systemd-helper-masked
+ fi
+
fi
#DEBHELPER#