summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorGravatar Bastien Nocera2009-08-03 21:23:25 +0200
committerGravatar Nikias Bassen2009-08-03 21:23:25 +0200
commit91fc30c3247dbc41ce2dfcedfd6086c513ffa80a (patch)
tree7337d2dbaeeca941efd1c0cacb958cda2426334c /udev
parentb7d4f48d7e85c43f0dd1111619acf79aba535371 (diff)
downloadusbmuxd-0.1.2.tar.gz
usbmuxd-0.1.2.tar.bz2
Use udev mode in the udev rulesv0.1.2
Otherwise this only works on Debian-based systems. Signed-off-by: Nikias Bassen <nikias@gmx.li>
Diffstat (limited to 'udev')
-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 4e35f7e..64f7c3f 100644
--- a/udev/85-usbmuxd.rules.in
+++ b/udev/85-usbmuxd.rules.in
@@ -16,8 +16,8 @@ ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep04", IMPORT{program
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"
-ACTION=="remove", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="/sbin/start-stop-daemon --stop --signal 3 --exec @prefix@/sbin/usbmuxd"
+ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="@prefix@/sbin/usbmuxd -u"
+# usbmuxd will go away when the last device is removed, when in udev mode
# skip
LABEL="usbmuxd_rules_end"