<div dir="ltr"><div>Using lspci -n you get a readout with 3-4 fields, ex:<br>01:09.0 0280: 1814:0601<br></div><div>In which the final field is for kmod-rt2860sta. I'm not sure of an easy way to get the Vendor:Device ID field<br>
</div><div>by itself, but if you could, would you then only have to compare it to the local repo file and have the script tell the user all the drivers they need to install? <br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jun 28, 2013 at 8:58 AM, Joe Pruett <span dir="ltr"><<a href="mailto:joey@q7.com" target="_blank">joey@q7.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 2013-06-28 05:55, Phil Perry wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 25/06/13 15:27, David Carollo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have done a semester of perl scripting, so I shall try my best.<br>
On Jun 25, 2013 6:24 AM, "Ljubomir Ljubojevic" <<a href="mailto:centos@plnet.rs" target="_blank">centos@plnet.rs</a>> wrote:<br>
<br>
</blockquote>
<br>
Yes, this would make a very nice little project for someone willing to undertake it. At a fundamental level, I guess it's simply a case of parsing each device against a list of device IDs from a list of supported devices for each driver.<br>
<br>
</blockquote>
<br></div>
i'd suggest looking at how dell does their firmware update stuff. my basic understanding is that they attach aliases (or maybe it is done via provides entries) for device ids to the appropriate packages. then you can do things like:<br>
<br>
yum install `bootstrap_firmware`<br>
<br>
and bootstrap_firmware spits out things like:<br>
<br>
pci_firmware(ven_0x8086_dev_<u></u>0x3c04)/system(ven_0x1028_dev_<u></u>0x04ce)<br>
pci_firmware(ven_0x8086_dev_<u></u>0x3c04)<br>
pci_firmware(ven_0x8086_dev_<u></u>0x3c06)/system(ven_0x1028_dev_<u></u>0x04ce)<br>
pci_firmware(ven_0x8086_dev_<u></u>0x3c06)<br>
pci_firmware(ven_0x1912_dev_<u></u>0x0013)/system(ven_0x1028_dev_<u></u>0x04ce)<br>
pci_firmware(ven_0x1912_dev_<u></u>0x0013)<br>
<br>
which magically finds the right packages. that seems like a rather nice way to do things.<div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
elrepo mailing list<br>
<a href="mailto:elrepo@lists.elrepo.org" target="_blank">elrepo@lists.elrepo.org</a><br>
<a href="http://lists.elrepo.org/mailman/listinfo/elrepo" target="_blank">http://lists.elrepo.org/<u></u>mailman/listinfo/elrepo</a><br>
</div></div></blockquote></div><br></div>