hide-hardware-info: also parse /usr/local/etc/hide-hardware-info.d/*.conf

This commit is contained in:
Patrick Schleizer 2024-10-28 05:03:59 -04:00
parent 6c2e808b9f
commit d00235897d
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -28,7 +28,7 @@ selinux=0
shopt -s nullglob shopt -s nullglob
## Allows for disabling the whitelist. ## Allows for disabling the whitelist.
for i in /etc/hide-hardware-info.d/*.conf ; do for i in /usr/local/etc/hide-hardware-info.d/*.conf /etc/hide-hardware-info.d/*.conf ; do
bash -n "${i}" bash -n "${i}"
source "${i}" source "${i}"
done done