On Mon, 23 Jun 2003, Nick Rout wrote:

> My research shows that the toshiba 6100 uses the e100.o driver, It
> resides in /lib/modules/*/kernel/drivers/net/e100/e100.o (most net
> drivers simply live in lib/modules/*/kernel/drivers/net )
> 
> My question for script gurus is: will this code fragment catch it?
> 
> [start]
> for x in /lib/modules/*/kernel/drivers/net/*
>                 do
>                         y=${x##*/}
>                         y=${y%%.*}
>                         echo -ne " ${GOOD}*${NORMAL} Scanning for ${y}..."
>                         insmod -f ${x} > /dev/null 2>&1
>                         backup
>                 done
> [end]
> 
> the uncertainty in my mind being that the e100.o  driver is in a
> subdirectory of /lib/modules/*/kernel/drivers/net/*

It would be much better to try to take a step back and ask yourself what
do you want to achieve in fact.

If you just want to load the e100 driver then all you need is a line in modules.conf:
   alias eth0 e100
(or similar)

Your script looks like a solution in search of a problem :-) :-)

Cheers,
-- 
Ryurick M. Hristev mailto:[EMAIL PROTECTED]
Computer Systems Manager
University of Canterbury, Physics & Astronomy Dept., New Zealand

Reply via email to