mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-25 22:38:30 -05:00
Suppress usbguard startup unless a USB controller is visible to lspci
This commit is contained in:
parent
5b97e7bd27
commit
fa32ba6c4f
3 changed files with 13 additions and 0 deletions
|
|
@ -3,3 +3,4 @@
|
|||
|
||||
[Unit]
|
||||
ConditionPathExists=/sys/bus/usb
|
||||
ExecCondition=/usr/libexec/security-misc/check-for-usb-controller
|
||||
|
|
|
|||
11
usr/libexec/security-misc/check-for-usb-controller#security-misc-shared
Executable file
11
usr/libexec/security-misc/check-for-usb-controller#security-misc-shared
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
export LC_ALL='C'
|
||||
|
||||
if lspci | grep -q '^[^ ]* USB controller: '; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue