diff options
| -rw-r--r-- | daemon/usb.h | 2 | ||||
| -rw-r--r-- | udev/85-usbmuxd.rules.in | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/daemon/usb.h b/daemon/usb.h index 9884d7f..6fe7ee6 100644 --- a/daemon/usb.h +++ b/daemon/usb.h | |||
| @@ -46,7 +46,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |||
| 46 | 46 | ||
| 47 | #define VID_APPLE 0x5ac | 47 | #define VID_APPLE 0x5ac |
| 48 | #define PID_RANGE_LOW 0x1290 | 48 | #define PID_RANGE_LOW 0x1290 |
| 49 | #define PID_RANGE_MAX 0x129f | 49 | #define PID_RANGE_MAX 0x12af |
| 50 | 50 | ||
| 51 | struct usb_device; | 51 | struct usb_device; |
| 52 | 52 | ||
diff --git a/udev/85-usbmuxd.rules.in b/udev/85-usbmuxd.rules.in index 3856c79..508990b 100644 --- a/udev/85-usbmuxd.rules.in +++ b/udev/85-usbmuxd.rules.in | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # usbmuxd (iPhone "Apple Mobile Device" MUXer listening on /var/run/usbmuxd) | 1 | # usbmuxd (iPhone "Apple Mobile Device" MUXer listening on /var/run/usbmuxd) |
| 2 | 2 | ||
| 3 | # Forces iPhone 1.0, 3G, 3GS, iPodTouch 1/2 and iPad to USB configuration 3 and run usbmuxd | 3 | # Forces iDevices to the last USB configuration and runs usbmuxd |
| 4 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux" | 4 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux" |
| 5 | 5 | ||
| 6 | # Exit usbmuxd when the last device is removed | 6 | # Exit usbmuxd when the last device is removed |
| 7 | ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -x" | 7 | ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -x" |
