summaryrefslogtreecommitdiffstats
path: root/debian/lldpd.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
commitbb62f0cd14029a6ea4f3f38b00f9eb812011079c (patch)
treede63c1a14f53c55736ca35c4779000ff3c066316 /debian/lldpd.postrm
parentAdding upstream version 1.0.18. (diff)
downloadlldpd-bb62f0cd14029a6ea4f3f38b00f9eb812011079c.tar.xz
lldpd-bb62f0cd14029a6ea4f3f38b00f9eb812011079c.zip
Adding debian version 1.0.18-1.debian/1.0.18-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/lldpd.postrm')
-rw-r--r--debian/lldpd.postrm20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/lldpd.postrm b/debian/lldpd.postrm
new file mode 100644
index 0000000..9c2c640
--- /dev/null
+++ b/debian/lldpd.postrm
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+ purge)
+ dpkg-statoverride --remove /usr/sbin/lldpcli
+ dpkg-statoverride --quiet --remove /usr/sbin/lldpctl || true
+ deluser --system _lldpd || true
+ delgroup --system _lldpd || true
+
+ rm -rf /run/lldpd
+ ;;
+ *)
+ ;;
+esac
+
+exit 0