[debian-edu-commits] [Git][debian-edu/upstream/sitesummary][master] Disable usage of lspci on clients by default

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Tue Aug 22 14:21:54 BST 2023



Mike Gabriel pushed to branch master at Debian Edu / upstream / sitesummary


Commits:
8ca4df7c by Guido Berhoerster at 2023-08-22T14:01:56+02:00
Disable usage of lspci on clients by default

This works around a bug that turns off the screen on certain Intel NUC models.
It can be re-enabled by setting the environment variable ENABLE_LSPCI to an
arbitrary value.

- - - - -


1 changed file:

- collect.d/system


Changes:

=====================================
collect.d/system
=====================================
@@ -13,7 +13,7 @@ if type dmidecode >/dev/null 2>&1; then
     dmidecode   > dmidecode 2> /dev/null
 fi
 
-if [ -d /proc/bus/pci ] && type lspci >/dev/null 2>&1; then
+if [ -d /proc/bus/pci ] && [ -n "${ENABLE_LSPCI}" ] && type lspci >/dev/null 2>&1; then
     lspci       > lspci
     lspci -n    > lspci-n
 fi



View it on GitLab: https://salsa.debian.org/debian-edu/upstream/sitesummary/-/commit/8ca4df7ca1c44fb2c69dee31afc535f7102ddc34

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/upstream/sitesummary/-/commit/8ca4df7ca1c44fb2c69dee31afc535f7102ddc34
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20230822/dd93aaa8/attachment.htm>


More information about the debian-edu-commits mailing list