Page 1 of 1
Loading modules during boot
Posted: 14. Sep 2011, 11:54
by Bart
Hi all,
I'm having some problems to load some modules at boot time.
I have added this line at the end of /etc/rc.d/rc.modules
/sbin/modprobe lm90
but the module don't start during boot.
If I try to load it manually all works fine. Why?
Thanks.
Re: Loading modules during boot
Posted: 14. Sep 2011, 13:11
by Shador
Bart wrote:Hi all,
I'm having some problems to load some modules at boot time.
I have added this line at the end of /etc/rc.d/rc.modules
/sbin/modprobe lm90
but the module don't start during boot.
If I try to load it manually all works fine. Why?
Thanks.
What's the output of:
Re: Loading modules during boot
Posted: 14. Sep 2011, 15:48
by Bart
Shador wrote:What's the output of:
Code: Select all
lrwxrwxrwx 1 root root 23 lug 22 14:21 /etc/rc.d/rc.modules -> rc.modules-2.6.37.6-smp*
-rwxr-xr-x 1 root root 35406 set 14 13:46 /etc/rc.d/rc.modules-2.6.37.6-smp*
Re: Loading modules during boot
Posted: 14. Sep 2011, 17:09
by gapan
Try putting it in rc.local instead.
Re: Loading modules during boot
Posted: 14. Sep 2011, 21:15
by Shador
gapan wrote:Try putting it in rc.local instead.
That's probably going to work. But it doesn't explain why rc.modules doesn't work. After all the latter is much better suited for modules as it runs much earlier.
Do you get such a line when booting: "Running /etc/rc.d/rc.modules" or something like this "Module dependencies up to date" / "Updating modules dependencies" ? The only condition that seems to be able to prevent rc.modules from running is when /proc/modules is not readable during rc.S.
Re: Loading modules during boot
Posted: 16. Sep 2011, 16:31
by Bart
True, infact using /etc/rc.d/rc.local all works fine but the problem remains.