mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 15:02:01 +08:00
1f0bfd80c7
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>
16 lines
407 B
Bash
Executable File
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:"
|