|
|
ba63c5 |
From a4c34c493e5d40395b55871b52b75f33550b9590 Mon Sep 17 00:00:00 2001
|
|
|
ba63c5 |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
ba63c5 |
Date: Wed, 18 Apr 2018 15:00:25 +0200
|
|
|
ba63c5 |
Subject: [PATCH] udev: Work around systemd bug related to bind events
|
|
|
ba63c5 |
|
|
|
ba63c5 |
Make sure that udev doesn't lose our properties when bind events come
|
|
|
ba63c5 |
in, as implemented in kernels 4.12+.
|
|
|
ba63c5 |
|
|
|
ba63c5 |
See https://github.com/systemd/systemd/issues/8221
|
|
|
ba63c5 |
and https://github.com/systemd/systemd/issues/7109
|
|
|
ba63c5 |
---
|
|
|
ba63c5 |
udev/39-usbmuxd.rules.in | 3 +++
|
|
|
ba63c5 |
1 file changed, 3 insertions(+)
|
|
|
ba63c5 |
|
|
|
ba63c5 |
diff --git a/udev/39-usbmuxd.rules.in b/udev/39-usbmuxd.rules.in
|
|
|
ba63c5 |
index 140869e..4e84755 100644
|
|
|
ba63c5 |
--- a/udev/39-usbmuxd.rules.in
|
|
|
ba63c5 |
+++ b/udev/39-usbmuxd.rules.in
|
|
|
ba63c5 |
@@ -6,5 +6,8 @@ SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/
|
|
|
ba63c5 |
# Initialize iOS devices into "deactivated" USB configuration state and activate usbmuxd
|
|
|
ba63c5 |
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@
|
|
|
ba63c5 |
|
|
|
ba63c5 |
+# Make sure properties don't get lost when bind action is called
|
|
|
ba63c5 |
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="bind", ENV{USBMUX_SUPPORTED}="1", OWNER="usbmux", @udev_activation_rule@
|
|
|
ba63c5 |
+
|
|
|
ba63c5 |
# Exit usbmuxd when the last device is removed
|
|
|
ba63c5 |
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ACTION=="remove", RUN+="@sbindir@/usbmuxd -x"
|
|
|
ba63c5 |
--
|
|
|
ba63c5 |
2.17.0
|
|
|
ba63c5 |
|