From 443edc808d8b2e0ac8d6c497248815a5a1a5a9c9 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Wed, 25 Mar 2009 21:32:54 -0700 Subject: Removed ugly bash script that set the configuration value. --- udev/89-libiphone.rules | 9 +++++++++ udev/89-libiphone.rules.in | 5 ----- udev/Makefile.am | 10 ---------- udev/set-usb-configuration-3.sh | 3 --- 4 files changed, 9 insertions(+), 18 deletions(-) create mode 100644 udev/89-libiphone.rules delete mode 100644 udev/89-libiphone.rules.in delete mode 100755 udev/set-usb-configuration-3.sh (limited to 'udev') 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" diff --git a/udev/89-libiphone.rules.in b/udev/89-libiphone.rules.in deleted file mode 100644 index 48e9a16..0000000 --- a/udev/89-libiphone.rules.in +++ /dev/null @@ -1,5 +0,0 @@ -# Forces iPhone 1.0, 3G and iPodTouch 1 and 2 to USB configuration 3 -KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1290", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" -KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1291", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" -KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1292", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" -KERNEL=="?-?", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="1293", ACTION=="add", RUN+="@bindir@/set-usb-configuration-3.sh" 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 @@ udevdir=$(sysconfdir)/udev/rules.d/ udev_DATA=89-libiphone.rules - -edit = sed \ - -e 's|@bindir[@]|$(bindir)|g' - -89-libiphone.rules: - rm -f $@ $@.tmp - $(edit) '$(srcdir)/$@.in' >$@.tmp - mv $@.tmp $@ - -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 @@ -#!/bin/sh - -echo 3 > /sys$DEVPATH/bConfigurationValue -- cgit v1.1-32-gdbae