This shows you the differences between two versions of the page.

Link to this comparison view

load-modules-on-boot-centos6 [2012-11-01 15:47:36] (current)
shaun.reitan created
Line 1: Line 1:
 +====== How to load modules on boot CentOS 6.x ======
 +If you would like to load a module on boot you can do so by doing the following.
 +create a file named anything.module in the /​etc/​sysconfig/​modules/​ directory. ​ The file can be named anything so long as it ends with .module. ​ You will also need to give this file 755 permissions.
 +<code console>
 +cd /​etc/​sysconfig/​modules/​
 +touch mymodule.modules
 +chmod 755 mymodule.modules
 +echo "#​!/​bin/​sh
 +/​sbin/​insmod mymodule"​ >> mymodule.modules
 +Thats it!