From b1bc747824c21749d3d09c1aa6b1ce71087cd8cd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 15 Jun 2017 20:09:03 +0200 Subject: Add udev rules file to allow non-root users access DFU/Recovery mode devices --- udev/39-libirecovery.rules.in | 5 +++++ udev/Makefile.am | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 udev/39-libirecovery.rules.in create mode 100644 udev/Makefile.am (limited to 'udev') diff --git a/udev/39-libirecovery.rules.in b/udev/39-libirecovery.rules.in new file mode 100644 index 0000000..3f1e906 --- /dev/null +++ b/udev/39-libirecovery.rules.in @@ -0,0 +1,5 @@ +# Handle iOS devices in DFU and Recovery mode - for use with libirecovery + +# Change group and permissions of iOS devices in DFU, legacy WTF, and Recovery mode +ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="122[27]|128[0-3]", @udev_activation_rule@ + 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 -- cgit v1.1-32-gdbae