source:
mainline/uspace/srv/pci/update-ids@
113c677
Last change on this file since 113c677 was afb1e35, checked in by , 17 years ago | |
---|---|
|
|
File size: 296 bytes |
Rev | Line | |
---|---|---|
[4a7c273] | 1 | #! /bin/bash |
2 | ||
3 | wget http://pciids.sourceforge.net/v2.2/pci.ids | |
4 | ||
[afb1e35] | 5 | cat > pci_ids.h <<EOF |
[4a7c273] | 6 | /* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */ |
7 | char *pci_ids[] = { | |
8 | EOF | |
9 | ||
[afb1e35] | 10 | cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | sed -n 's/\(.*\)/"\1",/p' >> pci_ids.h |
[4a7c273] | 11 | |
[afb1e35] | 12 | cat >> pci_ids.h <<EOF |
[4a7c273] | 13 | "" |
14 | }; | |
15 | EOF |
Note:
See TracBrowser
for help on using the repository browser.