From 7f54d304149f405dc70ac924471df0d5e3e5ea09 Mon Sep 17 00:00:00 2001 From: Gavin Li Date: Sun, 14 Jan 2018 02:10:18 -0800 Subject: udev: ensure that all events relating to device are tagged systemd systemd will not restart the usbmuxd service the after the first time it is plugged in if it does not receive the "remove" events, which also happen to lack the idVendor and idProduct attributes, so use ENV{PRODUCT} instead. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b836f45..1ce46d8 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,7 @@ fi AM_CONDITIONAL(WANT_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno -a "x$with_systemd" = "xyes" ]) if test "x$with_systemd" = xyes; then - udev_activation_rule="TAG+=\"systemd\", ENV{SYSTEMD_WANTS}=\"usbmuxd.service\"" + udev_activation_rule="ENV{SYSTEMD_WANTS}=\"usbmuxd.service\"" else udev_activation_rule="RUN+=\"@sbindir@/usbmuxd --user usbmux --udev\"" fi -- cgit v1.1-32-gdbae