Pierre Bourgin escribió:

What I'm thinking about is to use the Linux PCI devices informations
(from /sys/bus/pci/devices) on the hardware platform to install and try to
guess which .inf Windows drivers can match for each of these PCI devices via
their PCI_{VENDOR,DEVICE,SUBSYS,SUBDEV,CLASS} values.


Funny, I have the same thought a while back, and I start a script but I did not finish it.

It is just a start point so do not expect it to work..

#!/bin/sh
# Ok, this is a script to search inf files
# If looks for this a Line maching Vendor Device then it will print the OEMpath

#first lets get the pciids of the system
/usr/bin/lspci -n | awk '{print $3}' > pciids.txt 

#awk -F: '{grep -R "VEN_$1&DEV_$2" *}' pciids.txt

#VENDOR =/usr/bin/lspci -n | awk '{print $3}' | awk -F: '{print $1}'
#DEVICE =/usr/bin/lspci -n | awk '{print $3}' | awk -F: '{print $2}'

grep -R "VEN_10B9&DEV_5246" D | awk -F: '{print $1}' | awk -F/ '{$NF="";print}'
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to