Server : Apache System : Linux enhance01.hostingraja.org 5.15.0-144-generic #157-Ubuntu SMP Mon Jun 16 07:33:10 UTC 2025 x86_64 User : webdemo_4 ( 4864) PHP Version : 7.4.33 Disable Function : NONE Directory : /sbin/ |
Upload File : |
#!/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"