summaryrefslogtreecommitdiffstats
path: root/udev/Makefile.am
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-06-15 20:09:03 +0200
committerGravatar Nikias Bassen2017-06-15 20:09:03 +0200
commitb1bc747824c21749d3d09c1aa6b1ce71087cd8cd (patch)
treeea0eecf5d717fe3c95a250ded5843e0d2f7c4772 /udev/Makefile.am
parentc2c463af0fe7988c465f88403a50a45af8cb2777 (diff)
downloadlibirecovery-b1bc747824c21749d3d09c1aa6b1ce71087cd8cd.tar.gz
libirecovery-b1bc747824c21749d3d09c1aa6b1ce71087cd8cd.tar.bz2
Add udev rules file to allow non-root users access DFU/Recovery mode devices
Diffstat (limited to 'udev/Makefile.am')
-rw-r--r--udev/Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/udev/Makefile.am b/udev/Makefile.am
new file mode 100644
index 0000000..2a7ad98
--- /dev/null
+++ b/udev/Makefile.am
@@ -0,0 +1,21 @@
+if WITH_UDEV
+edit = \
+ $(SED) -r \
+ -e 's|@udev_activation_rule[@]|$(udev_activation_rule)|g' \
+ < $< > $@ || rm $@
+
+udevrules_DATA = \
+ 39-libirecovery.rules
+
+39-libirecovery.rules: 39-libirecovery.rules.in
+ $(edit)
+
+EXTRA_DIST = \
+ 39-libirecovery.rules.in
+
+MAINTAINERCLEANFILES = \
+ 39-libirecovery.rules
+
+CLEANFILES = \
+ 39-libirecovery.rules
+endif