summaryrefslogtreecommitdiff
path: root/units/usb
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2019-06-27 11:10:46 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2019-06-27 11:10:46 +0100
commit6ee38b7653ec2acc33cceeef26857fabbf800b24 (patch)
tree6e7994a2aac47720bb31b3f53e3621fe55263d1e /units/usb
parent1a93cfaf7588ab3e74bffa8935561453e7a6bfeb (diff)
usb: use lsusb from checkbox-support
lsusb.py script needs to used when running from snaps. Use the version in checkbox-support to ensure it is available
Diffstat (limited to 'units/usb')
-rw-r--r--units/usb/usb.pxu2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/usb/usb.pxu b/units/usb/usb.pxu
index 99623fb8..75cf3c9f 100644
--- a/units/usb/usb.pxu
+++ b/units/usb/usb.pxu
@@ -7,7 +7,7 @@ estimated_duration: 1.0
command:
set -o pipefail
if [[ -v SNAP ]]; then
- lsusb.py -f $SNAP/var/lib/usbutils/usb.ids 2>/dev/null | sed 's/.*\(ID .*\)/\1/' | head -n 4 || echo "No USB devices were detected" >&2
+ checkbox-support-lsusb -f $SNAP/checkbox-runtime/var/lib/usbutils/usb.ids 2>/dev/null | sed 's/.*\(ID .*\)/\1/' | head -n 4 || echo "No USB devices were detected" >&2
else
lsusb 2>/dev/null | sort || echo "No USB devices were detected" >&2
fi