security-misc/usr/libexec/security-misc/check-for-usb-controller#security-misc-shared
Patrick Schleizer d50e6afc8f
sanity test
2025-11-08 01:34:32 -05:00

17 lines
314 B
Bash
Executable file

#!/bin/bash
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
set -e
export LC_ALL='C'
## Package 'pciutils' provides tool 'lspci'.
command -v lspci &>/dev/null
if lspci | grep --quiet '^[^ ]* USB controller: '; then
exit 0
fi
exit 1