home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / misc / src / install / pci-probing / pcidevinfo < prev    next >
Encoding:
Text File  |  1997-09-17  |  254 b   |  22 lines

  1. #!/bin/bash
  2. #
  3. # output devinfo entries from pci.c
  4. #
  5. #
  6. awk '
  7.  
  8. BEGIN { foundit = 0 }
  9.  
  10. # now read in lines till we hit the last line
  11. {
  12. if (foundit && $0 ~ /\;/) exit
  13.  
  14. if (foundit) print $0
  15.  
  16. if ($0 ~ /struct pci_dev_info dev_info/) foundit = 1
  17. }
  18.  
  19. END { }
  20.  
  21. '
  22.