diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-16 15:07:01 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-16 15:07:01 +0000 |
commit | 2e14e5ad5bdf326a6b8b6e3064ca04e07fbd086c (patch) | |
tree | 733a84a3bce7cff2557697dd821108a9752b29b0 /lspcidrake.c | |
parent | 667f94e4543832186ed073bbefa5873096f9c369 (diff) | |
download | ldetect-2e14e5ad5bdf326a6b8b6e3064ca04e07fbd086c.tar ldetect-2e14e5ad5bdf326a6b8b6e3064ca04e07fbd086c.tar.gz ldetect-2e14e5ad5bdf326a6b8b6e3064ca04e07fbd086c.tar.bz2 ldetect-2e14e5ad5bdf326a6b8b6e3064ca04e07fbd086c.tar.xz ldetect-2e14e5ad5bdf326a6b8b6e3064ca04e07fbd086c.zip |
- pci.c: add the ability to read pci devices list from a file instead
of /proc/bus/pci/devices
- spec: prepare for next release
- add ChangeLog
Diffstat (limited to 'lspcidrake.c')
-rw-r--r-- | lspcidrake.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lspcidrake.c b/lspcidrake.c index ace91e4..f98bed3 100644 --- a/lspcidrake.c +++ b/lspcidrake.c @@ -38,6 +38,7 @@ int main(int argc, char **argv) { if (!strcmp(*ptr, "-h") || !strcmp(*ptr, "--help")) { printf("usage: lspcidrake [-v|-f|-u]\n" "-f : full probe\n" + "-p : pci devices source [/proc/bus/pci/devices by default\n" "-u : usb devices source [/proc/usb/devices by default\n" "-v : verbose mode [print ids and sub-ids], implies full probe\n" ); @@ -51,6 +52,8 @@ int main(int argc, char **argv) { full_probe = 1; if (!strcmp(*ptr, "-u")) proc_usb_path = *++ptr; + if (!strcmp(*ptr, "-p")) + proc_pci_path = *++ptr; ptr++; } |