add script that returns local pci(e) ids
This commit is contained in:
		
							
								
								
									
										9
									
								
								roles/yavdr-common/files/list_pci_ids.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								roles/yavdr-common/files/list_pci_ids.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
# return all vendor:device ids
 | 
			
		||||
# typical device path:
 | 
			
		||||
# /sys/devices/pci0000\:00/0000\:00\:1f.2/
 | 
			
		||||
 | 
			
		||||
for device in /sys/devices/pci*/*:*:*/; do
 | 
			
		||||
  echo "$(cat "$device"/vendor):$(cat "$device"/device)" | sed 's/0x//g'
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user