Hi this is my first post and i am very new to Linux. Although i am quickly seeing the light
I am trying to write a bash script that can be run as part of an installation to detect what hardware is present on the target machine. I have spent a while messing around with different commands and exploring the proc and dev directories but feel that this is a rather clumy way of doing things.
Basically i want to obtain a list of the hardware but i don't really want to check all the different directories and where required parse the relevant info. I have also looked at prtdiag but again this would require parsing the relevant info.
Please don't think i'm being lazy i'm just trying to obtain the most efficient and elegant solution.
if anyone can point me in the right direction, has some advice or has been in this situation please let me know.
Thanks