diff options
Diffstat (limited to 'debian/lldpd.postinst')
-rw-r--r-- | debian/lldpd.postinst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/lldpd.postinst b/debian/lldpd.postinst new file mode 100644 index 0000000..a1b2266 --- /dev/null +++ b/debian/lldpd.postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +case "$1" in + configure|reconfigure) + adduser --system --disabled-password --disabled-login --home /run/lldpd \ + --no-create-home --quiet --force-badname --group _lldpd + + for i in /usr/sbin/lldpcli; do + if ! dpkg-statoverride --list $i > /dev/null 2>&1; then + dpkg-statoverride --update --add _lldpd adm 4750 $i + fi + done + ;; +esac + +#DEBHELPER# + +exit 0 |