| Server IP : 94.16.115.136 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux rogerrabbit 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : bkillingseder ( 1001) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/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"