diff options
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | udev/39-usbmuxd.rules.in | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index b836f45..1ce46d8 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -74,7 +74,7 @@ fi | |||
| 74 | AM_CONDITIONAL(WANT_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno -a "x$with_systemd" = "xyes" ]) | 74 | AM_CONDITIONAL(WANT_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno -a "x$with_systemd" = "xyes" ]) |
| 75 | 75 | ||
| 76 | if test "x$with_systemd" = xyes; then | 76 | if test "x$with_systemd" = xyes; then |
| 77 | udev_activation_rule="TAG+=\"systemd\", ENV{SYSTEMD_WANTS}=\"usbmuxd.service\"" | 77 | udev_activation_rule="ENV{SYSTEMD_WANTS}=\"usbmuxd.service\"" |
| 78 | else | 78 | else |
| 79 | udev_activation_rule="RUN+=\"@sbindir@/usbmuxd --user usbmux --udev\"" | 79 | udev_activation_rule="RUN+=\"@sbindir@/usbmuxd --user usbmux --udev\"" |
| 80 | fi | 80 | fi |
diff --git a/udev/39-usbmuxd.rules.in b/udev/39-usbmuxd.rules.in index 91b14db..7d14d22 100644 --- a/udev/39-usbmuxd.rules.in +++ b/udev/39-usbmuxd.rules.in | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | # usbmuxd (Apple Mobile Device Muxer listening on /var/run/usbmuxd) | 1 | # usbmuxd (Apple Mobile Device Muxer listening on /var/run/usbmuxd) |
| 2 | 2 | ||
| 3 | # systemd should receive all events relating to device | ||
| 4 | SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", TAG+="systemd" | ||
| 5 | |||
| 3 | # Initialize iOS devices into "deactivated" USB configuration state and activate usbmuxd | 6 | # Initialize iOS devices into "deactivated" USB configuration state and activate usbmuxd |
| 4 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", OWNER="usbmux", @udev_activation_rule@ | 7 | SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="add", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", OWNER="usbmux", @udev_activation_rule@ |
| 5 | 8 | ||
| 6 | # Exit usbmuxd when the last device is removed | 9 | # Exit usbmuxd when the last device is removed |
| 7 | ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="@sbindir@/usbmuxd -x" | 10 | SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="remove", RUN+="@sbindir@/usbmuxd -x" |
