On Sun, 11 Mar 2001, mjs wrote:

> Im running RH 6.2 ...for some reason, on bootup eth0 won't load but after
> bootup I can run modprobe smc-ultra
> ifup eth0
>
> and it brings it up,..no problem and in my modules.conf file I have the
> correct lines
> alias eth0 smc-ultra
>
> so i added the lines
> /sbin/modprobe smc-ultra
> ifup eth0
>
> to my /etc/rc.d/rc.local script
> and everything was fine...
>
> but now it wont load through the /etc/rc.d/rc.local script, but when i run
> it manually
>
> sh /etc/rc.d/rc.local
>
> all is fine...
>
> quite strange if u ask me...anyway, can someone shed some light on this, im
> guessing on bootup,its not modprobing properly or something or cant find the
> modules...
>
> What script on bootup runs the modprobe by default so it loads all modules
> ...??
>
> please help
> thanks
>
>
You can try running "depmod -a" as root, and see if that fixes the
problem of the smc-ultra not loading when eth0 is brought up.  I have
seen this fix that type of problem before, though I am not sure why.
Normaly, depmot -a is run at bootup, and it should take care of it, but
sometimes it doesn't.  This is not a reproducable problem, so I do not
know how to enter it as a bug report.

As for your problem with running it in the rc.local script, it is
probably a path problem.  Remember, /sbin is not on the path when
rc.local is run during startup, but it is when you are logged in as
root.  The default path when files the startup scripts are run is
/bin:/usr/bin if I remember right.  You can specify the search path at
the start of the script, or use the full path name to files to get
around this.  You will also run into the same problems with cron
scripts.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to