diff options
| -rw-r--r-- | README | 4 | ||||
| -rw-r--r-- | udev/89-libiphone.rules (renamed from udev/89-libiphone.rules.in) | 12 | ||||
| -rw-r--r-- | udev/Makefile.am | 10 | ||||
| -rwxr-xr-x | udev/set-usb-configuration-3.sh | 3 |
4 files changed, 10 insertions, 19 deletions
| @@ -56,10 +56,10 @@ code: | |||
| 56 | git clone git://github.com/MattColyer/libiphone.git | 56 | git clone git://github.com/MattColyer/libiphone.git |
| 57 | 57 | ||
| 58 | tickets: | 58 | tickets: |
| 59 | http://iphone-linux.lighthouseapp.com/projects/27916-iphone-linux/tickets?q=all | 59 | http://libiphone.lighthouseapp.com/projects/27916-libiphone/tickets?q=all |
| 60 | 60 | ||
| 61 | mailing list: | 61 | mailing list: |
| 62 | http://lists.mattcolyer.com/listinfo.cgi/iphone-linux-dev-mattcolyer.com | 62 | http://lists.mattcolyer.com/listinfo.cgi/iphone-linux-dev-mattcolyer.com |
| 63 | 63 | ||
| 64 | updated: | 64 | updated: |
| 65 | 2009-03-23 | 65 | 2009-03-25 |
diff --git a/udev/89-libiphone.rules.in b/udev/89-libiphone.rules index 48e9a16..0982d29 100644 --- a/udev/89-libiphone.rules.in +++ b/udev/89-libiphone.rules | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | ATTR{idVendor}!="05ac", GOTO="libiphone_rules_end" | ||
| 2 | |||
| 1 | # Forces iPhone 1.0, 3G and iPodTouch 1 and 2 to USB configuration 3 | 3 | # Forces iPhone 1.0, 3G and iPodTouch 1 and 2 to USB configuration 3 |
| 2 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1290", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" | 4 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1290", ACTION=="add", ATTR{bConfigurationValue}="3" |
| 3 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1291", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" | 5 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1291", ACTION=="add", ATTR{bConfigurationValue}="3" |
| 4 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1292", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" | 6 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1292", ACTION=="add", ATTR{bConfigurationValue}="3" |
| 5 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1293", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" | 7 | KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1293", ACTION=="add", ATTR{bConfigurationValue}="3" |
| 8 | |||
| 9 | LABEL="libiphone_rules_end" | ||
diff --git a/udev/Makefile.am b/udev/Makefile.am index 27cc456..d7b8a2f 100644 --- a/udev/Makefile.am +++ b/udev/Makefile.am | |||
| @@ -1,12 +1,2 @@ | |||
| 1 | udevdir=$(sysconfdir)/udev/rules.d/ | 1 | udevdir=$(sysconfdir)/udev/rules.d/ |
| 2 | udev_DATA=89-libiphone.rules | 2 | udev_DATA=89-libiphone.rules |
| 3 | |||
| 4 | edit = sed \ | ||
| 5 | -e 's|@bindir[@]|$(bindir)|g' | ||
| 6 | |||
| 7 | 89-libiphone.rules: | ||
| 8 | rm -f $@ $@.tmp | ||
| 9 | $(edit) '$(srcdir)/$@.in' >$@.tmp | ||
| 10 | mv $@.tmp $@ | ||
| 11 | |||
| 12 | bin_SCRIPTS = set-usb-configuration-3.sh | ||
diff --git a/udev/set-usb-configuration-3.sh b/udev/set-usb-configuration-3.sh deleted file mode 100755 index ace07f0..0000000 --- a/udev/set-usb-configuration-3.sh +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | echo 3 > /sys$DEVPATH/bConfigurationValue | ||
