HEX
Server: nginx/1.18.0
System: Linux srv01 5.15.0-171-generic #181-Ubuntu SMP Fri Feb 6 22:44:50 UTC 2026 x86_64
User: RaviMohan (1026)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/sbin/u-d-c-print-pci-ids
#!/bin/sh

PCI_ID="${ID_PATH##pci-}"

# We only care about nvidia and fglrx here
if [ -d "/sys/bus/pci/drivers/nvidia/$PCI_ID/" ]; then
    DEVICE="$(cat /sys/bus/pci/drivers/nvidia/$PCI_ID/device)"
    VENDOR="$(cat /sys/bus/pci/drivers/nvidia/$PCI_ID/vendor)"
elif [ -d "/sys/bus/pci/drivers/fglrx/$PCI_ID/" ]; then
    DEVICE="$(cat /sys/bus/pci/drivers/fglrx_pci/$PCI_ID/device)"
    VENDOR="$(cat /sys/bus/pci/drivers/fglrx_pci/$PCI_ID/vendor)"
else
    exit 0
fi

touch "/run/u-d-c-gpu-$PCI_ID-$VENDOR-$DEVICE"