summarylogtreecommitdiffstats
path: root/usbip-bind@.service
diff options
context:
space:
mode:
authornomisge2020-12-08 23:24:20 +0100
committernomisge2020-12-08 23:24:20 +0100
commit18edf727d8e898e486abbf59b0925d5c2f804630 (patch)
treee03d3fa1869a6b9ae38c30d7da0c250f4b56344e /usbip-bind@.service
parentf9883120cea0ac83d65716fae682c2079a9f9299 (diff)
downloadaur-18edf727d8e898e486abbf59b0925d5c2f804630.tar.gz
Adjusted scripts to changes in systemd and usbip
Diffstat (limited to 'usbip-bind@.service')
-rw-r--r--usbip-bind@.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/usbip-bind@.service b/usbip-bind@.service
index d4f19140ece2..39784c290966 100644
--- a/usbip-bind@.service
+++ b/usbip-bind@.service
@@ -8,9 +8,9 @@ Requires=usbipd.service
[Service]
Type=simple
EnvironmentFile=/etc/usbip/bind-devices/%i.conf
-ExecStart=/bin/sh -c "/usr/bin/usbip bind -b $(/usr/bin/usbip list -p -l | grep '#usbid=$USBIP_DEVICE#' | cut '-d#' -f1)"
+ExecStart=/bin/sh -c "/usr/bin/usbip bind -b $(/usr/bin/usbip list -p -l | grep '#usbid=${USBIP_DEVICE}#' | cut '-d#' -f1 | cut '-d=' -f2)"
RemainAfterExit=yes
-ExecStop=/bin/sh -c "/usr/bin/usbip unbind -b $(/usr/bin/usbip list -p -l | grep '#usbid=$USBIP_DEVICE#' | cut '-d#' -f1)"
+ExecStop=/bin/sh -c "/usr/bin/usbip unbind -b $(/usr/bin/usbip list -p -l | grep '#usbid=${USBIP_DEVICE}#' | cut '-d#' -f1 | cut '-d=' -f2)"
Restart=on-failure
[Install]