summaryrefslogtreecommitdiffstats
path: root/udev/85-usbmuxd.rules.in
diff options
context:
space:
mode:
authorGravatar Bastien Nocera2009-08-04 19:14:55 +0200
committerGravatar Nikias Bassen2009-08-04 19:14:55 +0200
commit8fc5311c3d1b9bcf39cd209004d92824b87d3883 (patch)
tree6b7a9d8a2730d9e229858e3e0b07214aec87f999 /udev/85-usbmuxd.rules.in
parentba107891b3ecb52fccc656bdd611142ffebef86d (diff)
downloadusbmuxd-8fc5311c3d1b9bcf39cd209004d92824b87d3883.tar.gz
usbmuxd-8fc5311c3d1b9bcf39cd209004d92824b87d3883.tar.bz2
Use udev -x/-u in udev rules
This will make them work on non-Debian distributions. Signed-off-by: Nikias Bassen <nikias@gmx.li>
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 4e35f7e..82221d4 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"
+ACTION=="remove", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="@prefix@/sbin/usbmuxd -x"
# skip
LABEL="usbmuxd_rules_end"