[elrepo] Package for detecting hardware?
David Carollo
usr.drc at gmail.com
Sat Jun 29 16:29:06 EDT 2013
Using lspci -n you get a readout with 3-4 fields, ex:
01:09.0 0280: 1814:0601
In which the final field is for kmod-rt2860sta. I'm not sure of an easy way
to get the Vendor:Device ID field
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?
On Fri, Jun 28, 2013 at 8:58 AM, Joe Pruett <joey at q7.com> wrote:
>
> On 2013-06-28 05:55, Phil Perry wrote:
>
>> On 25/06/13 15:27, David Carollo wrote:
>>
>>> I have done a semester of perl scripting, so I shall try my best.
>>> On Jun 25, 2013 6:24 AM, "Ljubomir Ljubojevic" <centos at plnet.rs> wrote:
>>>
>>>
>> 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.
>>
>>
> 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:
>
> yum install `bootstrap_firmware`
>
> and bootstrap_firmware spits out things like:
>
> pci_firmware(ven_0x8086_dev_**0x3c04)/system(ven_0x1028_dev_**0x04ce)
> pci_firmware(ven_0x8086_dev_**0x3c04)
> pci_firmware(ven_0x8086_dev_**0x3c06)/system(ven_0x1028_dev_**0x04ce)
> pci_firmware(ven_0x8086_dev_**0x3c06)
> pci_firmware(ven_0x1912_dev_**0x0013)/system(ven_0x1028_dev_**0x04ce)
> pci_firmware(ven_0x1912_dev_**0x0013)
>
> which magically finds the right packages. that seems like a rather nice
> way to do things.
>
> ______________________________**_________________
> elrepo mailing list
> elrepo at lists.elrepo.org
> http://lists.elrepo.org/**mailman/listinfo/elrepo<http://lists.elrepo.org/mailman/listinfo/elrepo>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elrepo.org/pipermail/elrepo/attachments/20130629/e46e21b6/attachment.html>
More information about the elrepo
mailing list