how to load a module at boot time
I have written a module for RH8 kernel version is 2.4.18 . Currently i am manually loading the module using insmod. Could someone please help me what must be done so that the module is automatically loaded at system boot time.
|
place your insmod command into your /etc/rc.d/rc.local file
|
startup scripts
Put it in your startup scripts. There is bound to be something in your /etc directory that has some startup scripts in it. Just dump in your insmod/modprobe command in there.
|
wel that really depends on the distro you are using.
for example in gentoo edit /etc/modules.autoload.d/ in debian check /etc/modutils/ |
i missed the RH8 part sorry
I think you should use /etc/modules.conf |
what about in mandrake?
|
Thanks for all the replies, i forget to mention a point which i need to pass parameters for the loading module and the values for the parameters are read from a file.
I wrote a script which get the required parameter values and then execute the insmod command. Now my requirement is where should the script be placed so that it is invoked automatically at boot time. Could someone help me on this or propose a better solution. |
Quote:
Quote:
|
All times are GMT -5. The time now is 06:14 AM. |