summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin S2012-04-07 21:23:00 +0200
committerGravatar Martin S2012-04-07 21:23:00 +0200
commit53d2f8a495fe9baaff7695da02a39476cd5d2d6f (patch)
tree9ab09d14594c470c0126c129da4fe76f19acbc75
parentf76874b807f5595e54752ba4973eba1d57ff7621 (diff)
downloadusbmuxd-53d2f8a495fe9baaff7695da02a39476cd5d2d6f.tar.gz
usbmuxd-53d2f8a495fe9baaff7695da02a39476cd5d2d6f.tar.bz2
udev: Set owner to usbmux on device node to make it useable for usbmux user
-rw-r--r--udev/85-usbmuxd.rules.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/85-usbmuxd.rules.in b/udev/85-usbmuxd.rules.in
index 508990b..6f2186b 100644
--- a/udev/85-usbmuxd.rules.in
+++ b/udev/85-usbmuxd.rules.in
@@ -1,7 +1,7 @@
-# usbmuxd (iPhone "Apple Mobile Device" MUXer listening on /var/run/usbmuxd)
+# 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}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux"
+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+="@CMAKE_INSTALL_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+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -x"