diff options
Diffstat (limited to 'source/ap/usbmuxd/39-usbmuxd.rules')
-rw-r--r-- | source/ap/usbmuxd/39-usbmuxd.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/ap/usbmuxd/39-usbmuxd.rules b/source/ap/usbmuxd/39-usbmuxd.rules new file mode 100644 index 00000000..68cf6dce --- /dev/null +++ b/source/ap/usbmuxd/39-usbmuxd.rules @@ -0,0 +1,7 @@ +# usbmuxd (Apple Mobile Device Muxer listening on /var/run/usbmuxd) + +# Initialize iOS devices into "deactivated" USB configuration state and activate usbmuxd +ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", OWNER="usbmux", RUN+="/usr/sbin/usbmuxd --user usbmux --udev" + +# Exit usbmuxd when the last device is removed +ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="/usr/sbin/usbmuxd -x" |