summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2024-04-19 23:59:16 +0200
committerSuren A. Chilingaryan <csa@suren.me>2024-04-19 23:59:16 +0200
commit47ccbc64760519bfa00da2b0af7f870d6cf22f52 (patch)
tree94cc936168e2666dd8deb28c7371c76bf325d801 /tests
parent54d69ea09f3f709b6035757eab1ccd6d19c47d73 (diff)
downloadpcitool-47ccbc64760519bfa00da2b0af7f870d6cf22f52.tar.gz
pcitool-47ccbc64760519bfa00da2b0af7f870d6cf22f52.tar.bz2
pcitool-47ccbc64760519bfa00da2b0af7f870d6cf22f52.tar.xz
pcitool-47ccbc64760519bfa00da2b0af7f870d6cf22f52.zip
A sample script to register device with arbitrary vendor/device id
Diffstat (limited to 'tests')
-rwxr-xr-xtests/add_device.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/add_device.sh b/tests/add_device.sh
new file mode 100755
index 0000000..198d386
--- /dev/null
+++ b/tests/add_device.sh
@@ -0,0 +1,3 @@
+#! /bin/bash
+
+echo -n "10ee 7038" > /sys/bus/pci/drivers/pciDriver/new_id