diff options
author | Nikias Bassen | 2013-09-26 22:39:11 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-09-26 22:39:11 +0200 |
commit | e1866496eb25daba639492f6fa8b8529f0950501 (patch) | |
tree | c3201469d54738e9ee1678bc6fb6c738e88f935a /udev/39-usbmuxd.rules.in | |
parent | 1c77c9545c1000e0b808b5181e40e7e9064fc75b (diff) | |
download | usbmuxd-e1866496eb25daba639492f6fa8b8529f0950501.tar.gz usbmuxd-e1866496eb25daba639492f6fa8b8529f0950501.tar.bz2 |
udev: lower rules numbering to make sure we start as early as possible
To prevent the trust dialog from appearing on iOS7 devices we need to make
sure that no PTP access is happening before usbmuxd starts. So we start as
early as possible so the device will be in trusted host state.
Diffstat (limited to 'udev/39-usbmuxd.rules.in')
-rw-r--r-- | udev/39-usbmuxd.rules.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/udev/39-usbmuxd.rules.in b/udev/39-usbmuxd.rules.in new file mode 100644 index 0000000..da8042d --- /dev/null +++ b/udev/39-usbmuxd.rules.in @@ -0,0 +1,7 @@ +# usbmuxd ("Apple Mobile Device" muxer listening on /var/run/usbmuxd) + +# Forces iDevices to the last USB configuration and runs usbmuxd +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}", OWNER="usbmux", RUN+="@prefix@/sbin/usbmuxd -u -U usbmux" + +# Exit usbmuxd when the last device is removed +ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="@prefix@/sbin/usbmuxd -x" |