Adding genkernel modules to modules.autoload.d/kernel-2.6
I'm adding the modules from genkernel to modules.autoload.d/kernel-2.6. I'm using the command:
find /lib/modules/2.6.15-gentoo-r1/ -type f -iname '*.o' -or -iname '*.ko' >> /etc/modules.autoload.d/kernel-2.6
This will add all the modules to modules.autoload.d/kernel-2.6 but it's almost 1,000 lines in /path/modules.ko format. I really don't want to have to go through a thousand lines remoing the path and extension. Is there anyway to remove the path and extension using find or something else?