diff options
Diffstat (limited to 'debian/lldpd.postrm')
-rw-r--r-- | debian/lldpd.postrm | 20 |
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 |