0001-fix-systemd-detection.patch 885 B

123456789101112131415161718
  1. Modify the Makefile to include '$(PREFIX)/bin/systemctl' in the list of paths.
  2. This makes the udev intgeration work as intended when using systemd.
  3. Signed-off-by: Sol Bekic <s+removethis@s-ol.nu>
  4. diff --git a/Makefile b/Makefile
  5. index 22bd0e0..72321a4 100755
  6. --- a/Makefile
  7. +++ b/Makefile
  8. @@ -62,7 +62,7 @@
  9. install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
  10. install -d $(DESTDIR)/var/lib/usb_modeswitch
  11. test -d $(UPSDIR) -a -e /sbin/initctl && install --mode=644 usb-modeswitch-upstart.conf $(UPSDIR) || test 1
  12. - test -d $(SYSDIR) -a \( -e /usr/bin/systemctl -o -e /bin/systemctl \) && install --mode=644 usb_modeswitch@.service $(SYSDIR) || test 1
  13. + test -d $(SYSDIR) -a \( -e /usr/bin/systemctl -o -e /bin/systemctl -o -e $(PREFIX)/bin/systemctl \) && install --mode=644 usb_modeswitch@.service $(SYSDIR) || test 1
  14. install: install-script