diff options
| author | 2017-06-15 20:09:03 +0200 | |
|---|---|---|
| committer | 2017-06-15 20:09:03 +0200 | |
| commit | b1bc747824c21749d3d09c1aa6b1ce71087cd8cd (patch) | |
| tree | ea0eecf5d717fe3c95a250ded5843e0d2f7c4772 /udev | |
| parent | c2c463af0fe7988c465f88403a50a45af8cb2777 (diff) | |
| download | libirecovery-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')
| -rw-r--r-- | udev/39-libirecovery.rules.in | 5 | ||||
| -rw-r--r-- | udev/Makefile.am | 21 |
2 files changed, 26 insertions, 0 deletions
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 @@ | |||
| 1 | # Handle iOS devices in DFU and Recovery mode - for use with libirecovery | ||
| 2 | |||
| 3 | # Change group and permissions of iOS devices in DFU, legacy WTF, and Recovery mode | ||
| 4 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="122[27]|128[0-3]", @udev_activation_rule@ | ||
| 5 | |||
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 @@ | |||
| 1 | if WITH_UDEV | ||
| 2 | edit = \ | ||
| 3 | $(SED) -r \ | ||
| 4 | -e 's|@udev_activation_rule[@]|$(udev_activation_rule)|g' \ | ||
| 5 | < $< > $@ || rm $@ | ||
| 6 | |||
| 7 | udevrules_DATA = \ | ||
| 8 | 39-libirecovery.rules | ||
| 9 | |||
| 10 | 39-libirecovery.rules: 39-libirecovery.rules.in | ||
| 11 | $(edit) | ||
| 12 | |||
| 13 | EXTRA_DIST = \ | ||
| 14 | 39-libirecovery.rules.in | ||
| 15 | |||
| 16 | MAINTAINERCLEANFILES = \ | ||
| 17 | 39-libirecovery.rules | ||
| 18 | |||
| 19 | CLEANFILES = \ | ||
| 20 | 39-libirecovery.rules | ||
| 21 | endif | ||
