packaging: Use dh-sysuser

We can drop adding the group manually. We move the udev triggering
to the end to ensure the group is already there.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther
2025-12-15 15:43:49 +01:00
parent 970d7fbe11
commit 3126921746
3 changed files with 6 additions and 7 deletions
+4 -7
View File
@@ -17,12 +17,12 @@ set -e
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
# generated by other debhelper scripts.
#DEBHELPER#
case "$1" in
configure)
if ! getent group feedbackd >/dev/null; then
addgroup --quiet --system feedbackd
fi
# we ship udev rules, so trigger an update
udevadm trigger --subsystem-match=leds --subsystem-match=input --action=change || true
;;
@@ -37,9 +37,6 @@ case "$1" in
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0