25 lines
1.4 KiB
Diff
25 lines
1.4 KiB
Diff
diff -Nru usb-modeswitch-2.0.1.orig/Makefile usb-modeswitch-2.0.1/Makefile
|
|
--- usb-modeswitch-2.0.1.orig/Makefile 2013-09-03 19:22:05.000000000 +0200
|
|
+++ usb-modeswitch-2.0.1/Makefile 2013-09-13 15:12:16.343639973 +0200
|
|
@@ -85,7 +85,7 @@
|
|
install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
|
|
install -d $(DESTDIR)/var/lib/usb_modeswitch
|
|
test -d $(UPSDIR) -a -e /sbin/initctl && install --mode=644 usb-modeswitch-upstart.conf $(UPSDIR) || test 1
|
|
- test -d $(SYSDIR) -a -e /usr/bin/systemctl && install --mode=644 usb_modeswitch@.service $(SYSDIR) || test 1
|
|
+ test -d $(SYSDIR) -a -e /bin/systemctl && install --mode=644 usb_modeswitch@.service $(SYSDIR) || test 1
|
|
|
|
install: install-script
|
|
|
|
diff -Nru usb-modeswitch-2.0.1.orig/usb_modeswitch.sh usb-modeswitch-2.0.1/usb_modeswitch.sh
|
|
--- usb-modeswitch-2.0.1.orig/usb_modeswitch.sh 2013-09-03 19:21:08.000000000 +0200
|
|
+++ usb-modeswitch-2.0.1/usb_modeswitch.sh 2013-09-13 15:12:30.847532159 +0200
|
|
@@ -84,7 +84,7 @@
|
|
if [ -e "/etc/init/usb-modeswitch-upstart.conf" ]; then
|
|
exec /sbin/initctl emit --no-wait usb-modeswitch-upstart UMS_PARAM=$1
|
|
elif [ -e "/etc/systemd/system/usb_modeswitch@.service" ]; then
|
|
- exec /usr/bin/systemctl --no-block start usb_modeswitch@$1.service
|
|
+ exec /bin/systemctl --no-block start usb_modeswitch@$1.service
|
|
else
|
|
exec /usr/sbin/usb_modeswitch_dispatcher --switch-mode $1 &
|
|
fi
|