summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-03-20 21:19:27 +0100
committerGravatar Hector Martin2010-03-22 16:31:41 +0100
commit575c4a4ad93eb832996249ebd94d3242c859095b (patch)
tree0e40518a172460b313d20ee829ed8888e01ffc8a /udev
parent719ebc32464581ebc6b465d2fe78e642c1f50e20 (diff)
downloadusbmuxd-1.0.3.tar.gz
usbmuxd-1.0.3.tar.bz2
Flag udev device with USBMUX_SUPPORTEDv1.0.3
Desktop tools can now check for devices supporting the usbmux protocol without having to maintain any usb id ranges or similar.
Diffstat (limited to 'udev')
-rw-r--r--udev/85-usbmuxd.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/85-usbmuxd.rules.in b/udev/85-usbmuxd.rules.in
index f9c8376..2c8ae5d 100644
--- a/udev/85-usbmuxd.rules.in
+++ b/udev/85-usbmuxd.rules.in
@@ -1,7 +1,7 @@
# usbmuxd (iPhone "Apple Mobile Device" MUXer listening on /var/run/usbmuxd)
# Forces iPhone 1.0, 3G, 3GS and iPodTouch 1 and 2 to USB configuration 3 and run usbmuxd
-ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux"
+ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux"
# Exit usbmuxd when the last phone is removed
ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[0-9]/*", ENV{INTERFACE}=="255/*", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -x"