> Any of you guys any good as scripting?
> I'm trying to do a smarter version of this :
> 
> ls -lR /lib/modules/*/kernel/ >> /etc/modules.autoload.d/kernel-2.4
> 
> That works ok.. except that after I have to go through and remove all
> the .o from the ends of all the modules and also remove all the listed
> dir structure before each module..

The script I attached should do what you want... It outputs to stdout so
you'll have to redirect the output to the correct file yourself, but
hopefully that won't be very difficult for you to add in the script if
you want it to do it automatically.


Patrick Börjesson

-- 
Public key id: 4C5AB0BF
Public key available at search.keyserver.net[:11371]

Attachment: find_modules.sh
Description: application/shellscript

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to