Files
packages/utils/usbutils/test.sh
T
Alexandru Ardelean 1f0bfd80c7 usbutils: update to 019, switch to meson
Update from 017 to 019. Version 019 dropped autoconf in favour of meson,
so switch to include/meson.mk and drop PKG_FIXUP:=autoreconf and the
autoconf CONFIGURE_ARGS.

The binary lsusb no longer reads usb.ids directly; it now queries the
udev hardware database. lsusb.py still searches /usr/share/hwdata/usb.ids
for device name resolution.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-05-21 20:28:51 +03:00

16 lines
407 B
Bash
Executable File

#!/bin/sh
[ "$1" = "usbutils" ] || exit 0
# Binary accessible via alternatives
test -x /usr/libexec/lsusb-usbutils
# lsusb tree view runs without crashing (may be empty in test env)
lsusb -t 2>/dev/null; [ $? -ne 127 ]
# lsusb device listing runs without crashing
lsusb 2>/dev/null; [ $? -ne 127 ]
# usbreset is installed and shows usage when invoked without arguments
usbreset 2>&1 | grep -q "Usage:"