Blame SOURCES/0002-udev-Handle-all-events-only-once.patch

747662
From b888970f68fb16961a7cc3a526065fab7a5d96ca Mon Sep 17 00:00:00 2001
747662
From: Rudolf Tammekivi <rtammekivi@gmail.com>
747662
Date: Wed, 31 Jan 2018 01:10:54 +0100
747662
Subject: [PATCH 2/2] udev: Handle all events only once
747662
747662
This fixes spontaneous USB reconfiguration causing "remove" event to be sent to
747662
the daemon, which causes it to close itself if it did not have enough time to
747662
connect to phone.
747662
---
747662
 udev/39-usbmuxd.rules.in | 6 +++---
747662
 1 file changed, 3 insertions(+), 3 deletions(-)
747662
747662
diff --git a/udev/39-usbmuxd.rules.in b/udev/39-usbmuxd.rules.in
747662
index 7d14d22..140869e 100644
747662
--- a/udev/39-usbmuxd.rules.in
747662
+++ b/udev/39-usbmuxd.rules.in
747662
@@ -1,10 +1,10 @@
747662
 # usbmuxd (Apple Mobile Device Muxer listening on /var/run/usbmuxd)
747662
 
747662
 # systemd should receive all events relating to device
747662
-SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", TAG+="systemd"
747662
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", TAG+="systemd"
747662
 
747662
 # Initialize iOS devices into "deactivated" USB configuration state and activate usbmuxd
747662
-SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="add", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", OWNER="usbmux", @udev_activation_rule@
747662
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="add", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", OWNER="usbmux", @udev_activation_rule@
747662
 
747662
 # Exit usbmuxd when the last device is removed
747662
-SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="remove", RUN+="@sbindir@/usbmuxd -x"
747662
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="remove", RUN+="@sbindir@/usbmuxd -x"
747662
-- 
747662
2.17.0
747662