summaryrefslogtreecommitdiffstats
path: root/pts-core
diff options
context:
space:
mode:
Diffstat (limited to 'pts-core')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 701e7b7..ebbcbe7 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -157,7 +157,16 @@ function read_pci($desc, $clean_string = true)
if(empty($pci_info))
{
- $pci_info = shell_exec("lspci 2>&1");
+ if(!is_executable("/usr/bin/lspci") && is_executable("/sbin/lspci"))
+ {
+ $lspci_cmd = "/sbin/lspci";
+ }
+ else
+ {
+ $lspci_cmd = "lspci";
+ }
+
+ $pci_info = shell_exec($lspci_cmd . " 2>&1");
}
if(!is_array($desc))
{