diff --git a/util/find_usbdebug/find_usbdebug.sh b/util/find_usbdebug/find_usbdebug.sh index de370b1fe8..7c893c96a4 100755 --- a/util/find_usbdebug/find_usbdebug.sh +++ b/util/find_usbdebug/find_usbdebug.sh @@ -27,6 +27,19 @@ if [ "$uid" -ne 0 ]; then echo "Must be run as root. Exiting." exit 1 fi + +if ! command -v lsusb; then + echo "lsusb not found. Please install \"usbutils\" from your +distribution's package manager. Exiting." + exit 1 +fi + +if ! command -v lspci; then + echo "lspci not found. Please install \"pciutils\" from your +distribution's package manager. Exiting." + exit 1 +fi + dmesgfile=$1 find_devs_in_tree () {