LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to add my module to linux kernel (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-my-module-to-linux-kernel-144315/)

eshwar_ind 02-10-2004 12:31 AM

how to add my module to linux kernel
 
Hi!
Can you please tell me how to add my module to the kernel statically ( i.e. When i reboot the system it should contain my module) ?
reply me.
bye,
Eshwar.

ilikejam 02-10-2004 01:39 AM

Hi.

You could put an entry in
/etc/rc.d/rc.sysinit

Something like modprobe [modulename] >/dev/null 2>&1

You'll have to figure out where in the file you want to do this.

If the module's not needed during boot, but will be later, you could put that line into
/etc/rc.d/rc.local

Dave

eshwar_ind 02-10-2004 02:08 AM

thank you for your help.

trickykid 02-10-2004 08:01 AM

Moved: More suitable in Newbie as it really isn't LFS specific. Regards.


All times are GMT -5. The time now is 11:06 PM.