Linux – How to load kernel module at startup on FC9

bootkernellinuxloading

I need to know how to automatically load a kernel module at startup on FC9. All the sites talk about adding an entry to /etc/modules.conf…. But that does not exist on FC9… Instead I have /etc/modprobe.d/ directory… Now, I suppose I need to put a file in this dir for my driver but I have no idea how to write this file… I just need "modprobe name" to be run…

Best Answer

Setup rc.modules like so:

echo "modprobe name" >> /etc/rc.modules
chmod +x /etc/rc.modules

rc.modules gets executed early on in the boot proccess.

Or you can create a file in /etc/modprobe.d if you need to pass in options etc:

echo "options foo bar=1 baz=2" >> /etc/modprobe.d/my-options