-----Original Message----- > Olá Stefan e a todos. > On Sunday 15 February 2009 15:56:32 Stefan Hamminga wrote: > > Here is what I've got so far: > > > > for mod in `((lspci -v | grep -i "Kernel driver in use: " | cut -b 24-) && > > (lspci -v | grep -i "Kernel modules: " | cut -b 18-)) | sort -u` ; do > > echo `grep $mod $(find -name Makefile) | grep -v debian | sed > > s/.*obj-\$\(// | sed s/\).*// | grep CONFIG` done
> Running this here just outputs a bunch of empty lines Ahh, I see, sorry, I forgot to include that this needs to be run in the kernel source root (eg. /usr/src/linux-2.6/), hadn't gotten to creating a 'prettier' version. The for loop searches every Makefile in the tree to get the corresponding CONFIG_ option for a loaded module. Stefan -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss