summaryrefslogtreecommitdiff
path: root/system/usbmuxd/85-usbmuxd.rules
diff options
context:
space:
mode:
authorDavid Somero <dsomero@hotmail.com>2010-05-13 01:01:15 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 01:01:15 +0200
commit36b78361e3c4f907e95566c75d1b8d268b405da2 (patch)
treedc3b270c74e39d858dea91623b521e4a1d681ca1 /system/usbmuxd/85-usbmuxd.rules
parentea80535f76d599c846ff9c07d877bdac3299a64d (diff)
downloadslackbuilds-36b78361e3c4f907e95566c75d1b8d268b405da2.tar.gz
system/usbmuxd: Added to 13.0 repository
Diffstat (limited to 'system/usbmuxd/85-usbmuxd.rules')
-rw-r--r--system/usbmuxd/85-usbmuxd.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/usbmuxd/85-usbmuxd.rules b/system/usbmuxd/85-usbmuxd.rules
new file mode 100644
index 0000000000..2fbf92c8a9
--- /dev/null
+++ b/system/usbmuxd/85-usbmuxd.rules
@@ -0,0 +1,7 @@
+# usbmuxd (iPhone "Apple Mobile Device" MUXer listening on /var/run/usbmuxd)
+
+# Forces iPhone 1.0, 3G, 3GS and iPodTouch 1 and 2 to USB configuration 3 and run usbmuxd
+ACTION=="add", SUBSYSTEM=="usb", GROUP="plugdev", MODE="770", OWNER="usbmux", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="/usr/sbin/usbmuxd -u --user=usbmux"
+
+# Exit usbmuxd when the last phone is removed
+ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[0-9]/*", ENV{INTERFACE}=="255/*", RUN+="/usr/sbin/usbmuxd -x"