$arr_19 ), array( 3, false, $arr_20, $arr_24 ), array( 2, false, "\" />", $arr_25 ) ) ); ?> $arr_27 ), array( 3, false, $arr_28, $arr_30 ), array( 2, false, "\" />\n\n", $arr_31 ) ) ); ?> array( 2, false, false, $arr_9 ), array( 4, $arr_10, "if", $arr_245, $arr_248 ), array( 2, false, "\n", $arr_249 ) ) ); ?> rr_466 ), array( 4, $arr_467, "if", $arr_482, $arr_484 ), array( 2, false, "\n", $arr_485 ) ) ); ?> DISCOVERY SCRIPTS » Linux Magazine
 

Bash-based hardware detection for PCI and USB

DISCOVERY SCRIPTS

Author(s):

If you need fast answers for what's inside, you can use a Bash script to obtain an inventory of hardware on your Linux system.

If you operate outside of the mainstream distributions or compile your own Linux system, whether an em-bedded Linux, a rescue system, or just a do-it-yourself distro, you need to solve the issue of finding the right kernel modules for your collection of hardware. Armed with some background know-ledge, you can use almost any programming language to create a system for PCI or USB hardware detection. In this article, I’ll show you a method for obtaining information about devices on your Linux system with a Bash script. Using sysfs or proc, you can find all the information you need about the manufacturer, device, and device class just by asking the kernel.

Read full article as PDF »

Hardware_Detection.pdf (149.74 kB)
comments powered by Disqus

Direct Download

Read full article as PDF »

Hardware_Detection.pdf (149.74 kB)

News