summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-08-04 00:43:09 +0200
committerGravatar Nikias Bassen2009-08-04 00:43:09 +0200
commit29ab549b8bf981243efcc924bf6539a8170de3cc (patch)
treebe2a8fc75bec3d0c035ba519cea3e1e1784f6fbd /udev
parentf6ee6302f7d87294b7175b4b639b293aafb80424 (diff)
downloadusbmuxd-29ab549b8bf981243efcc924bf6539a8170de3cc.tar.gz
usbmuxd-29ab549b8bf981243efcc924bf6539a8170de3cc.tar.bz2
Revert "Use udev mode in the udev rules"v0.1.3
This reverts commit 91fc30c3247dbc41ce2dfcedfd6086c513ffa80a. Not working as expected.
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 64f7c3f..4e35f7e 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+="@prefix@/sbin/usbmuxd -u"
-# usbmuxd will go away when the last device is removed, when in udev mode
+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"
# skip
LABEL="usbmuxd_rules_end"