Alex Hixon avatar Alex Hixon committed 806f4e1

Added udev loader rules template.

Thanks to Willem van Engen for this.

Comments (0)

Files changed (1)

contrib/90-r5u87x-loader.rules.in

+# r5u87x-loader.rules - udev rules for loading firmware into Ricoh R5U87x USB video devices
+###
+### This file is processed by the debian rules to create the final file. Each
+### USB id gets its own line as defined by the section between BEGINTEMPLATE
+### and ENDTEMPLATE. In the template, the strings #VENDORID# and #PRODUCTID#
+### are replaced by their values. This template line is repeated for each
+### USB for which there is a file in the directory ucode/.
+###
+### Lines starting with three hashes are removed from this file.
+###
+
+ACTION!="add", GOTO="r5u87x_rules_end"
+SUBSYSTEM!="usb", GOTO="r5u87x_rules_end"
+
+###BEGINTEMPLATE###
+SYSFS{idVendor}=="#VENDORID#", SYSFS{idProduct}=="#PRODUCTID#", RUN+="/usr/sbin/r5u87x-loader --reload"
+###ENDTEMPLATE###
+
+LABEL="r5u87x_rules_end"
+# vim: ft=conf
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.