diff options
author | nomisge | 2020-12-08 23:24:20 +0100 |
---|---|---|
committer | nomisge | 2020-12-08 23:24:20 +0100 |
commit | 18edf727d8e898e486abbf59b0925d5c2f804630 (patch) | |
tree | e03d3fa1869a6b9ae38c30d7da0c250f4b56344e /usbip-bind@.service | |
parent | f9883120cea0ac83d65716fae682c2079a9f9299 (diff) | |
download | aur-18edf727d8e898e486abbf59b0925d5c2f804630.tar.gz |
Adjusted scripts to changes in systemd and usbip
Diffstat (limited to 'usbip-bind@.service')
-rw-r--r-- | usbip-bind@.service | 4 |
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] |