debian: Generate postinst devices list automatically at gbp import phase

Alternatively provide a script to keep the post-inst script updated
This commit is contained in:
Marco Trevisan (Treviño)
2021-01-21 19:06:56 +01:00
parent b97f10d63d
commit 4c4b444f21
6 changed files with 67 additions and 18 deletions
+3 -1
View File
@@ -5,10 +5,12 @@ set -e
#DEBHELPER#
if [ "$1" = "configure" -o "$1" = "upgrade" ] && command -V udevadm >/dev/null 2>&1; then
# apply udev rules at package installation, see
# apply hwdb rules at package installation, see
# <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683863#27>
# NOTA BENE: after the DEBHELPER section since dh_installudev
# adds stuff there
# The devices ID list is auto-generated using the gbp postimport hook
# see debian/README.sources for more details.
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=2016
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=2020
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0010