From a0af522ced2d9c43a2b1dbce13064f958610dad0 Mon Sep 17 00:00:00 2001 From: Luca Capello Date: Fri, 4 Jan 2013 13:29:38 +0100 Subject: [PATCH] Apply udev rules at install time with udevadm --trigger Closes: #683863 --- debian/libfprint0.postinst | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 debian/libfprint0.postinst diff --git a/debian/libfprint0.postinst b/debian/libfprint0.postinst new file mode 100644 index 00000000..61bf030d --- /dev/null +++ b/debian/libfprint0.postinst @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +if [ "$1" = "configure" -o "$1" = "upgrade" ]; then + # apply udev rules at package installation, see + # + # NOTA BENE: after the DEBHELPER section since dh_installudev + # adds stuff there + udevadm trigger --action=add --attr-match=idVendor=0483 --attr-match=idProduct=2016 + udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=2016 + udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=5501 + udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2500 + udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2580 + udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bb + udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bc + udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bd + udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00ca + udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=0007 + udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=0008 + udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=000a + udevadm trigger --action=add --attr-match=idVendor=061a --attr-match=idProduct=0110 + udevadm trigger --action=add --attr-match=idVendor=061a --attr-match=idProduct=1000 + udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1600 + udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0001 + udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2810 +fi + +exit 0