How to add kernel module into /lib/modules/.. file constantly

M

mehmet riza

Guest
Hi,

I'm trying to learn linux kernel module programming.
i have some running modules.
i load them to kernel using insmod. They run properly.
But i want to load them constantly in to kernel.
How can i make them run at start up autamatically?
 


If I understand correctly, you may want to try appending the module names into /etc/modules

I know my /etc/modules file has entries like "cfg80211" and "iwldvm" in it. Those are modules that run at startup automatically on my machine.
 
You'll probably want to use depmod. The man page describes how to use it.
 
It depends on the distribution. /etc/modules is correct for Debian based, but e.g. for RHEL/fedora it's /etc/sysconfig/modules and for Slackware it's /etc/rc.d/rc.modules
 

Members online


Top