/usr/share/whereami/tests/testusb is in whereami 0.3.34-0.4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
#
# Contributed by Brett Johnson
#
# Turn on execution tracing, for debugging...
[ "$DEBUGWHEREAMI" = "1" ] && set -o xtrace
/usr/sbin/lsusb | grep "$1" >/dev/null && exit 0
exit 1
|