From d50e6afc8fb0a925e07fc54b7ecc1f450d9aa176 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 8 Nov 2025 01:34:32 -0500 Subject: [PATCH] sanity test --- .../check-for-usb-controller#security-misc-shared | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/libexec/security-misc/check-for-usb-controller#security-misc-shared b/usr/libexec/security-misc/check-for-usb-controller#security-misc-shared index 515155e..3c00602 100755 --- a/usr/libexec/security-misc/check-for-usb-controller#security-misc-shared +++ b/usr/libexec/security-misc/check-for-usb-controller#security-misc-shared @@ -3,9 +3,13 @@ ## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC ## 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