summaryrefslogtreecommitdiffstats
path: root/udev/85-usbmuxd.rules.in
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-05-24 18:20:54 +0200
committerGravatar Nikias Bassen2009-05-24 18:20:54 +0200
commit12c244a76cc6a75a385ddfc5dc44734825383fe2 (patch)
treec1a68ebb585c2f1b0cb1dda6bc88581480cee2c2 /udev/85-usbmuxd.rules.in
parentada0443d5c2a71ba580b1ae122d7212e4fb12078 (diff)
downloadusbmuxd-12c244a76cc6a75a385ddfc5dc44734825383fe2.tar.gz
usbmuxd-12c244a76cc6a75a385ddfc5dc44734825383fe2.tar.bz2
Make udev symlink rules work with recent udev by using usb_id
Diffstat (limited to 'udev/85-usbmuxd.rules.in')
-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 8aca2ce..3acc944 100644
--- a/udev/85-usbmuxd.rules.in
+++ b/udev/85-usbmuxd.rules.in
@@ -12,8 +12,8 @@ LABEL="usbmuxd_rules_usbmux"
ACTION=="add|remove", SUBSYSTEM!="usb_endpoint", GOTO="usbmuxd_rules_end"
# Setup cute names for the endpoints
-ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep04", SYMLINK+="usbmux/%s{serial}/%s{direction}"
-ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", SYMLINK+="usbmux/%s{serial}/%s{direction}"
+ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep04", IMPORT{program}="usb_id %p --export", SYMLINK+="usbmux/$env{ID_SERIAL_SHORT}/%s{direction}"
+ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", IMPORT{program}="usb_id %p --export", SYMLINK+="usbmux/$env{ID_SERIAL_SHORT}/%s{direction}"
# Start and stop 'usbmuxd' as required
ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="/sbin/start-stop-daemon --start --oknodo --exec @prefix@/sbin/usbmuxd"