LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Loading a Module at boot time (http://www.linuxquestions.org/questions/fedora-35/loading-a-module-at-boot-time-168710/)

Nappa 04-11-2004 03:27 AM

Loading a Module at boot time
 
Just wanted to know what I would do to continuously load a module at boot time in Fedora Core 1, instead of modprobing it each time I log in.

dopefish 04-11-2004 03:56 AM

There should be a file called modules.rc or rc.modules in /etc/rc.d
add the line
/sbin/modprobe <modulename>

Nappa 04-11-2004 11:58 PM

fedora core 1 doesn't have a /etc/rc.d/rc.modules file I was told to use the rc.local file which will work if I want to boot into init 3 mode because the module loads after all the scripts. I want to boot into init 5 and be able to load the module early on, but I don't know where to put my modprobe command at to do this.

Nappa 04-12-2004 01:22 PM

nobody can tell me where to load a module durring early boot time? I don't want to have to re-compile the kernel with the module compiled in.

Nappa 04-12-2004 11:57 PM

well...I gave it a shot. Was hoping someone would be able to help. I think that I'll go back to using Debian. I don't care for the package manager, but I did have everything working with it.

dopefish 04-13-2004 08:47 AM

Ok just did a search of the forums and fedora uses /etc/modules.conf to load its modules at boot

Nappa 04-13-2004 04:37 PM

Well the modules.conf file is confusing. The module I'm trying to load early in the boot process (before rc.sysinit file) is the evdev which is the driver for my touchscreen. I want to be able to load in graphical boot (run level 5), but the screen hangs because I can't load this module early enough. I've tried putting this into the /etc/modules.conf file

alias /dev/input/event* evdev

but it does not load. If I boot in run level 3 and have the line

modprobe evdev in my /etc/rc.d/rc.local file, X comes up just fine after I login because the script gets run before I ever enter into anything graphical.

I'm stumped and really don't want to recompile the kernel which is
2.4.22 and have to upgrade to 2.6.3 which I heard is hard to get working with any distro. I really appreciate any help and am thankful for these forums. I do have some other little questions because I'm so used to using Slackware and I know that each distro has its own way of doing certain things.

FOR fedora Core 1:
where is the best place to put my own alias's
where do I change my command prompt (/etc/profile ?? /etc/bashrc ??)
when compiling a 2.6.x kernel, do I have to 'make dep'

dopefish 04-14-2004 01:50 AM

why not put /sbin/modprobe evdev in /etc/modules.conf?

Nappa 04-14-2004 07:12 PM

that command will not work in that file. The format of the commands in the modules.conf file I don't really understand but I've tried using /sbin/modprobe evdev and /sbin/modprobe evdev.o in the file, niether work.


All times are GMT -5. The time now is 11:09 AM.