On Sun, 2003-09-21 at 02:48, bob bob wrote: > 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.. > below is an example of the output: > > /lib/modules/2.4.20-gentoo-r6/kernel/: > total 3 > drwxr-xr-x 3 root root 72 Sep 8 06:57 arch > drwxr-xr-x 20 root root 488 Sep 8 06:57 drivers > drwxr-xr-x 30 root root 720 Sep 8 06:57 fs > drwxr-xr-x 3 root root 80 Sep 8 06:57 lib > drwxr-xr-x 9 root root 224 Sep 8 06:57 net > > /lib/modules/2.4.20-gentoo-r6/kernel/arch: > total 1 > drwxr-xr-x 3 root root 72 Sep 8 06:57 i386 > > /lib/modules/2.4.20-gentoo-r6/kernel/arch/i386: > total 1 > drwxr-xr-x 2 root root 120 Sep 8 06:57 kernel > > /lib/modules/2.4.20-gentoo-r6/kernel/arch/i386/kernel: > total 28 > -rw-r--r-- 1 root root 19016 Sep 8 06:57 apm.o > -rw-r--r-- 1 root root 3044 Sep 8 06:57 cpuid.o > -rw-r--r-- 1 root root 3848 Sep 8 06:57 msr.o > > > Now out of that all I want is : > apm > cpuid > msr > > I'm pretty sure it can be done.. what do you guys think? > > > "Imagine a school with children that can read and write, but with teachers > who cannot, and you have a metaphor of the Information Age in which we > live." - Peter Cochrane > > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > -- > [EMAIL PROTECTED] mailing list
ls -lR /lib/modules/*/kernel/ |sed 's/.o//g' >> /etc/modules.autoload.d/kernel-2.4 That should work (or at least be really close). -- Owen Ford <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
