File: README.source

package info (click to toggle)
libfprint 1%3A1.90.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,336 kB
  • sloc: ansic: 53,125; python: 559; sh: 394; xml: 317; makefile: 16; cpp: 11
file content (19 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
The libfprint0 postinst script calls udevadmin trigger for all the supported
USB readers. The list of readers used in that file is generated by calling the
following awk script:

  /plugdev/ {
          printf ("\tudevadm trigger --action=add " )
          for (i=1;i<=NF; i++){
                  if (match($i,/idVendor/)>0) {
                          match($i, /"[^"]*"/); printf ("--attr-match=idVendor=%s ",substr($i,RSTART+1,RLENGTH-2))
                  }
                  if (match($i,/idProduct/)>0) {
                          match($i, /"[^"]*"/); printf ("--attr-match=idProduct=%s",substr($i,RSTART+1,RLENGTH-2))
                  }
          };
          printf("\n")
  }

When preparing a new upstream release, this script should be called against the
udev .rules file generated during the build of the package