On Fri, 5 Sep 2003 08:06 pm, Marius Roets wrote:
How can I tell what network card I have on PC without opening the box. In other words, Linux networking is working fine, which network card module is it using ?
Try pasting this shell script into a command window a line at a time. for mod in `lsmod | perl -pe's/\s.*$/.o/'` do modprobe -nlt drivers/net $mod done The first line generates a list of all the modules loaded using lsmod The perl pipe strips all but the name of the module and appends ".o" Then inside the do statement modprobe finds the relevant module for you. -n means don't load it, just find it -l means tell me about it -t drivers/net means only network drivers If you put -t fs it would tell you about the filesystem modules and -t drivers/sound would tell you about the sound driver Enjoy, michaelj -- Michael James michael.james@csiro.au System Administrator voice: 02 6246 5040 CSIRO Bioinformatics Facility fax: 02 6246 5166