All, I would like to configure my FAI installation to detect the sound card on a PC and fcopy the appropriate /var/lib/alsa/sound.state file. I guess the question is, what's the best way to detect a particular piece of hardware? I was considering running lsmod or lspci within a perl script and grepping the output.