summaryrefslogtreecommitdiffstats
path: root/udev/89-libiphone.rules
diff options
context:
space:
mode:
authorGravatar Matt Colyer2009-03-25 21:32:54 -0700
committerGravatar Matt Colyer2009-03-25 21:32:54 -0700
commit443edc808d8b2e0ac8d6c497248815a5a1a5a9c9 (patch)
tree695e1b01fe2d1c0161557a710f1abc47383289bb /udev/89-libiphone.rules
parent91c644487bc23f929f06485073f9d992a547f00d (diff)
downloadlibimobiledevice-443edc808d8b2e0ac8d6c497248815a5a1a5a9c9.tar.gz
libimobiledevice-443edc808d8b2e0ac8d6c497248815a5a1a5a9c9.tar.bz2
Removed ugly bash script that set the configuration value.
Diffstat (limited to 'udev/89-libiphone.rules')
-rw-r--r--udev/89-libiphone.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/udev/89-libiphone.rules b/udev/89-libiphone.rules
new file mode 100644
index 0000000..0982d29
--- /dev/null
+++ b/udev/89-libiphone.rules
@@ -0,0 +1,9 @@
+ATTR{idVendor}!="05ac", GOTO="libiphone_rules_end"
+
+# Forces iPhone 1.0, 3G and iPodTouch 1 and 2 to USB configuration 3
+KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1290", ACTION=="add", ATTR{bConfigurationValue}="3"
+KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1291", ACTION=="add", ATTR{bConfigurationValue}="3"
+KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1292", ACTION=="add", ATTR{bConfigurationValue}="3"
+KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1293", ACTION=="add", ATTR{bConfigurationValue}="3"
+
+LABEL="libiphone_rules_end"